From d8eeaf1220fb606e0932c29e4287cc8cc95909c7 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Fri, 14 Jun 2024 15:52:54 -0400 Subject: [PATCH] remove unnecessary glue ticking --- .../content/contraptions/glue/SuperGlueEntity.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/glue/SuperGlueEntity.java b/src/main/java/com/simibubi/create/content/contraptions/glue/SuperGlueEntity.java index 0efe74944..a90f059f2 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/glue/SuperGlueEntity.java +++ b/src/main/java/com/simibubi/create/content/contraptions/glue/SuperGlueEntity.java @@ -36,6 +36,7 @@ import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.EntityDimensions; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.LightningBolt; +import net.minecraft.world.entity.Marker; import net.minecraft.world.entity.MoverType; import net.minecraft.world.entity.Pose; import net.minecraft.world.entity.player.Player; @@ -161,7 +162,13 @@ public class SuperGlueEntity extends Entity implements IEntityAdditionalSpawnDat @Override public void tick() { - super.tick(); + xRotO = getXRot(); + yRotO = getYRot(); + walkDistO = walkDist; + xo = getX(); + yo = getY(); + zo = getZ(); + if (getBoundingBox().getXsize() == 0) discard(); } @@ -294,7 +301,7 @@ public class SuperGlueEntity extends Entity implements IEntityAdditionalSpawnDat public PushReaction getPistonPushReaction() { return PushReaction.IGNORE; } - + @Override public PortalInfo findDimensionEntryPoint(ServerLevel pDestination) { portalEntrancePos = blockPosition();