From 407a3cfabed3869b38527153e8b3322a824f1263 Mon Sep 17 00:00:00 2001 From: Anthony Hilyard Date: Wed, 13 Oct 2021 22:51:23 -0700 Subject: Initial commit for 1.17.1 version. --- .../java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java') diff --git a/src/main/java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java b/src/main/java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java index f4ca091..ba3a69e 100644 --- a/src/main/java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java +++ b/src/main/java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java @@ -11,9 +11,9 @@ import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.At.Shift; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; -import net.minecraft.entity.Entity; -import net.minecraft.fluid.Fluid; -import net.minecraft.tags.ITag; +import net.minecraft.world.entity.Entity; +import net.minecraft.world.level.material.Fluid; +import net.minecraft.tags.Tag; import net.minecraftforge.common.MinecraftForge; @Mixin(Entity.class) @@ -22,7 +22,7 @@ public class EntityMixin extends net.minecraftforge.common.capabilities.Capabili private Fluid previousFluidOnEyes = null; @Shadow - protected ITag fluidOnEyes; + protected Tag fluidOnEyes; protected EntityMixin(Class baseClass) { super(baseClass); } @@ -45,7 +45,7 @@ public class EntityMixin extends net.minecraftforge.common.capabilities.Capabili } @Inject(method = "updateFluidOnEyes", - at = @At(value = "FIELD", target = "Lnet/minecraft/entity/Entity;fluidOnEyes:Lnet/minecraft/tags/ITag;", ordinal = 1, shift = Shift.AFTER)) + at = @At(value = "FIELD", target = "Lnet/minecraft/world/entity/Entity;fluidOnEyes:Lnet/minecraft/tags/Tag;", ordinal = 1, shift = Shift.AFTER)) public void onUpdateFluidOnEyeAssign(CallbackInfo callbackInfo) { Fluid currentFluid = null; -- cgit