From 62a16a4070ab2ad596a9173aa3314fbb1b16969f Mon Sep 17 00:00:00 2001 From: IThundxr Date: Thu, 2 May 2024 20:06:16 -0400 Subject: [PATCH] prefix method --- .../mixin/client/EntityContraptionInteractionMixin.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/mixin/client/EntityContraptionInteractionMixin.java b/src/main/java/com/simibubi/create/foundation/mixin/client/EntityContraptionInteractionMixin.java index 4614a059c..afe4a4fac 100644 --- a/src/main/java/com/simibubi/create/foundation/mixin/client/EntityContraptionInteractionMixin.java +++ b/src/main/java/com/simibubi/create/foundation/mixin/client/EntityContraptionInteractionMixin.java @@ -8,7 +8,6 @@ import java.util.stream.Stream; import org.apache.commons.lang3.mutable.MutableBoolean; import org.apache.logging.log4j.util.TriConsumer; -import org.objectweb.asm.Opcodes; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; @@ -82,7 +81,7 @@ public abstract class EntityContraptionInteractionMixin extends CapabilityProvid } @Unique - private void forCollision(Vec3 worldPos, TriConsumer action) { + private void create$forCollision(Vec3 worldPos, TriConsumer action) { create$getIntersectingContraptions().forEach(cEntity -> { Vec3 localPos = ContraptionCollider.worldToLocalPos(worldPos, cEntity); @@ -105,7 +104,7 @@ public abstract class EntityContraptionInteractionMixin extends CapabilityProvid Vec3 worldPos = position.add(0, -0.2, 0); MutableBoolean stepped = new MutableBoolean(false); - forCollision(worldPos, (contraption, state, pos) -> { + create$forCollision(worldPos, (contraption, state, pos) -> { playStepSound(pos, state); stepped.setTrue(); }); @@ -155,7 +154,7 @@ public abstract class EntityContraptionInteractionMixin extends CapabilityProvid Vec3 worldPos = position.add(0, -0.2, 0); BlockPos particlePos = new BlockPos(worldPos); // pos where particles are spawned - forCollision(worldPos, (contraption, state, pos) -> { + create$forCollision(worldPos, (contraption, state, pos) -> { if (!state.addRunningEffects(level, pos, self) && state.getRenderShape() != RenderShape.INVISIBLE) { Vec3 speed = self.getDeltaMovement();