mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 22:44:07 +01:00
Merge pull request #6595 from IThundxr/mc1.18/less-glue-ticking
Remove unnecessary glue ticking
This commit is contained in:
commit
4b0c852e16
@ -36,6 +36,7 @@ import net.minecraft.world.entity.Entity;
|
|||||||
import net.minecraft.world.entity.EntityDimensions;
|
import net.minecraft.world.entity.EntityDimensions;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
import net.minecraft.world.entity.LightningBolt;
|
import net.minecraft.world.entity.LightningBolt;
|
||||||
|
import net.minecraft.world.entity.Marker;
|
||||||
import net.minecraft.world.entity.MoverType;
|
import net.minecraft.world.entity.MoverType;
|
||||||
import net.minecraft.world.entity.Pose;
|
import net.minecraft.world.entity.Pose;
|
||||||
import net.minecraft.world.entity.player.Player;
|
import net.minecraft.world.entity.player.Player;
|
||||||
@ -161,7 +162,13 @@ public class SuperGlueEntity extends Entity implements IEntityAdditionalSpawnDat
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void tick() {
|
public void tick() {
|
||||||
super.tick();
|
xRotO = getXRot();
|
||||||
|
yRotO = getYRot();
|
||||||
|
walkDistO = walkDist;
|
||||||
|
xo = getX();
|
||||||
|
yo = getY();
|
||||||
|
zo = getZ();
|
||||||
|
|
||||||
if (getBoundingBox().getXsize() == 0)
|
if (getBoundingBox().getXsize() == 0)
|
||||||
discard();
|
discard();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user