Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiblock constructors to KJS + lang #2667

Merged
merged 1 commit into from
Dec 29, 2024
Merged

Conversation

krossgg
Copy link
Contributor

@krossgg krossgg commented Dec 29, 2024

What

This PR adds a new class MachineConstructors which is exposed to KJS as an easy way to use constructors for non-default machine types without having to manually load the class. This class is readily expandable.

Also, lang generation has been added to MultiblockMachineBuilder so that Kubers can make multiblock lang in-place.

Outcome

This incidentally fixes a funny issue where loading the LargeCombustionEngineMachine class in a KJS server script will crash the game, as it tries to initialize the static FluidStack before the materials have valid fluids.

@krossgg krossgg added the type: feature New feature or request label Dec 29, 2024
@krossgg krossgg requested a review from a team as a code owner December 29, 2024 05:40
@Ghostipedia Ghostipedia merged commit c2448cd into 1.20.1 Dec 29, 2024
3 of 4 checks passed
@Ghostipedia Ghostipedia deleted the kr/large-thonk-engine branch December 29, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants