This repository has been archived by the owner on Aug 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for Gaia Dimension
Fixes a bit masking issue in Gaia Dimension's River Generation Layer
- Loading branch information
Showing
4 changed files
with
28 additions
and
1 deletion.
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
14 changes: 14 additions & 0 deletions
14
.../java/uk/bobbytables/jeidsi/core/compat/gaiadimension/mixins/MixinGenLayerGDRiverMix.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,14 @@ | ||
package uk.bobbytables.jeidsi.core.compat.gaiadimension.mixins; | ||
|
||
import androsa.gaiadimension.world.layer.GenLayerGDRiverMix; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(GenLayerGDRiverMix.class) | ||
public class MixinGenLayerGDRiverMix { | ||
@ModifyConstant(method = "func_75904_a", constant = @Constant(intValue = 255), remap = false) | ||
private int getBitMask(int oldValue) { | ||
return 0xFFFFFFFF; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"package": "uk.bobbytables.jeidsi.core.compat.gaiadimension", | ||
"required": true, | ||
"refmap": "mixins.jeidsi.refmap.json", | ||
"target": "@env(DEFAULT)", | ||
"minVersion": "0.6", | ||
"compatibilityLevel": "JAVA_8", | ||
"mixins": [ | ||
"mixins.MixinGenLayerGDRiverMix" | ||
] | ||
} |