diff --git a/src/main/java/com/thebrokenrail/energonrelics/mixin/MixinEntity.java b/src/main/java/com/thebrokenrail/energonrelics/mixin/MixinEntity.java index 120a5ab..e1bc7c6 100644 --- a/src/main/java/com/thebrokenrail/energonrelics/mixin/MixinEntity.java +++ b/src/main/java/com/thebrokenrail/energonrelics/mixin/MixinEntity.java @@ -46,10 +46,11 @@ public abstract class MixinEntity implements PortalCooldownEntity { int l = MathHelper.ceil(box.maxY); int m = MathHelper.floor(box.minZ); int n = MathHelper.ceil(box.maxZ); + BlockPos.Mutable pos = new BlockPos.Mutable(); for (int p = i; p < j; ++p) { for (int q = k; q < l; ++q) { for (int r = m; r < n; ++r) { - BlockPos pos = new BlockPos(p, q, r); + pos.set(p, q, r); if (test.test(getEntityWorld().getBlockState(pos).getBlock())) { return true; }