-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e30b69f
commit d3b73de
Showing
14 changed files
with
381 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...main/java/github/kasuminova/stellarcore/mixin/advancedrocketry/MixinDimensionManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package github.kasuminova.stellarcore.mixin.advancedrocketry; | ||
|
||
import github.kasuminova.stellarcore.StellarCore; | ||
import github.kasuminova.stellarcore.common.config.StellarCoreConfig; | ||
import net.minecraftforge.fml.common.FMLCommonHandler; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Redirect; | ||
import zmaster587.advancedRocketry.dimension.DimensionManager; | ||
|
||
@SuppressWarnings("MethodMayBeStatic") | ||
@Mixin(value = DimensionManager.class, remap = false) | ||
public class MixinDimensionManager { | ||
|
||
@Redirect(method = "createAndLoadDimensions", at = @At(value = "INVOKE", target = "Lnet/minecraftforge/fml/common/FMLCommonHandler;exitJava(IZ)V")) | ||
private void redirectCreateAndLoadDimensions(final FMLCommonHandler instance, final int i, final boolean exitCode) { | ||
if (!StellarCoreConfig.BUG_FIXES.advancedRocketry.dimensionManager) { | ||
FMLCommonHandler.instance().exitJava(i, exitCode); | ||
return; | ||
} | ||
|
||
StellarCore.log.warn("************************************************************************************************************************"); | ||
StellarCore.log.warn("* StellarCore has stopped the crash caused by AR's failure to read planetDefs.xml! File generation will now be restarted."); | ||
StellarCore.log.warn("************************************************************************************************************************"); | ||
} | ||
|
||
} |
Oops, something went wrong.