remove unnecessary glue ticking

This commit is contained in:
IThundxr 2024-06-14 15:52:54 -04:00
parent d66170c8fe
commit d8eeaf1220
No known key found for this signature in database
GPG Key ID: E291EC97BAF935E6

View File

@ -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();
}