mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-13 00:47:31 +00:00
mixin update (still broken)
This commit is contained in:
1 parent
8fe25059b2
commit
5e4cf098d5
3 files changed
+9
-4
No files matched your search
+1
-1
@@ -80,7 +80,7 @@ apiPackage = api
|
||||
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
|
||||
# There can be multiple files in a space-separated list.
|
||||
# Example value: mymodid_at.cfg nei_at.cfg
|
||||
accessTransformersFile =
|
||||
accessTransformersFile = storagedrawers_at.cfg
|
||||
|
||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||
usesMixins = true
|
||||
|
||||
+7
-3
@@ -8,6 +8,8 @@ import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
|
||||
import com.jaquadro.minecraft.storagedrawers.block.tile.TileEntityDrawers;
|
||||
import com.llamalad7.mixinextras.expression.Definition;
|
||||
import com.llamalad7.mixinextras.expression.Expression;
|
||||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
||||
import com.llamalad7.mixinextras.sugar.Local;
|
||||
|
||||
@@ -17,9 +19,11 @@ public abstract class MixinPlayerControllerMP {
|
||||
@Shadow
|
||||
private float curBlockDamageMP;
|
||||
|
||||
@ModifyExpressionValue(
|
||||
method = "clickBlock",
|
||||
at = @At(value = "INVOKE", target = "Ltarget/Class;curBlockDamageMPZ"))
|
||||
@Definition(
|
||||
id = "curBlockDamageMP",
|
||||
field = "Lnet/minecraft/client/multiplayer/PlayerControllerMP;curBlockDamageMP:F")
|
||||
@Expression("this.curBlockDamageMP == 0.0")
|
||||
@ModifyExpressionValue(method = "clickBlock", at = @At(value = "MIXINEXTRAS:EXPRESSION"))
|
||||
|
||||
private boolean withClickOnDrawer(boolean original, @Local Minecraft mc, @Local int x, @Local int y, @Local int z,
|
||||
@Local int side) {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
public net.minecraft.client.multiplayer.PlayerControllerMP field_78770_f
|
||||
Reference in new issue
Block a user