-
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.
fix issues with older versions of mc
- Loading branch information
Jack
committed
Oct 9, 2023
1 parent
a68a6f6
commit d8160b2
Showing
16 changed files
with
121 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tech.lemonlime.Configurable; | ||
|
||
import dev.xpple.betterconfig.api.Config; | ||
|
||
public class Fixes { | ||
|
||
|
||
@Config(comment = "Made by FX, (USE CARPET FIXES, this is only here because of mod incompatibilities)") | ||
public static boolean stringDupeFix = false; | ||
|
||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...va/tech/lemonlime/ToggleEnd/Settings.java → ...tech/lemonlime/Configurable/Settings.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
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
9 changes: 7 additions & 2 deletions
9
...dGateways/EndGatewayBlockEntityMixin.java → ...dGateways/EndGatewayBlockEntityMixin.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
9 changes: 2 additions & 7 deletions
9
...PortalFrameFilling/EnderEyeItemMixin.java → ...PortalFrameFilling/EnderEyeItemMixin.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
6 changes: 2 additions & 4 deletions
6
...eEyeOfEnderCasting/EnderEyeItemMixin.java → ...eEyeOfEnderCasting/EnderEyeItemMixin.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
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
4 changes: 2 additions & 2 deletions
4
...ture/disablePVP/MinecraftServerMixin.java → ...ture/disablePVP/MinecraftServerMixin.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
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
4 changes: 2 additions & 2 deletions
4
...ture/fakeHardcore/PlayerManagerMixin.java → ...ture/fakeHardcore/PlayerManagerMixin.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
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
38 changes: 38 additions & 0 deletions
38
src/main/java/tech/lemonlime/Configurable/mixin/fix/stringDupeFix/TripwireBlockMixin.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,38 @@ | ||
package tech.lemonlime.Configurable.mixin.fix.stringDupeFix; | ||
|
||
|
||
|
||
import net.minecraft.block.TripwireBlock; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.ModifyArg; | ||
import tech.lemonlime.Configurable.Fixes; | ||
|
||
/** | ||
* Fixes the wring dupe at the cost of removing the ability to disarm tripwire. Wait you didn't know you could do that? | ||
* That's why I decided to do it xD | ||
* - FX | ||
* | ||
* | ||
* I wish I had time to make a real fix D: | ||
* - Jack | ||
*/ | ||
|
||
@Mixin(TripwireBlock.class) | ||
public class TripwireBlockMixin { | ||
|
||
|
||
@ModifyArg( | ||
method = "update", | ||
at = @At( | ||
value = "INVOKE", | ||
target = "Lnet/minecraft/block/TripwireHookBlock;update(Lnet/minecraft/world/World;" + | ||
"Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;" + | ||
"ZZILnet/minecraft/block/BlockState;)V" | ||
), | ||
index = 5 | ||
) | ||
private int alwaysNegativeOne(int i) { | ||
return Fixes.stringDupeFix ? -1 : i; | ||
} | ||
} |
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