Skip to content

Commit

Permalink
fix wrong pos given to ticking chunk check
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Apr 6, 2024
1 parent 44ab987 commit add7fd1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.level.ChunkPos;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.neoforged.neoforge.fluids.FluidStack;
import net.neoforged.neoforge.fluids.capability.IFluidHandler;
Expand Down Expand Up @@ -263,7 +264,7 @@ public void handleEject(long gameTime) {
continue;
}
ServerLevel level = (ServerLevel) qe.getLevel();
if (level == null || !level.shouldTickBlocksAt(qe.getBlockPos().asLong())) {
if (level == null || !level.shouldTickBlocksAt(ChunkPos.asLong(qe.getBlockPos()))) {
//Skip QEs that aren't supposed to be ticking
continue;
}
Expand Down

0 comments on commit add7fd1

Please sign in to comment.