Skip to content

Commit

Permalink
fix: tick stealing on chunk unloading different from vanilla
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Jun 9, 2021
1 parent 8557ee4 commit d48f4c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ public boolean isScheduled(BlockPos pos, T obj) {

@Override
public List<ScheduledTick<T>> getScheduledTicksInChunk(ChunkPos chunkPos, boolean mutates, boolean getStaleTicks) {
BlockBox box = new BlockBox(chunkPos.getStartX() - 2, 0, chunkPos.getStartZ() - 2,
chunkPos.getEndX() + 2, 256, chunkPos.getEndZ() + 2);
//[VanillaCopy] bug chunk steals ticks from neighboring chunk on unload + does so only in the negative direction
BlockBox box = new BlockBox(chunkPos.getStartX() - 2, Integer.MIN_VALUE, chunkPos.getStartZ() - 2, chunkPos.getStartX() + 16, Integer.MAX_VALUE, chunkPos.getStartZ() + 16);

return this.getScheduledTicks(box, mutates, getStaleTicks);
}
Expand Down

0 comments on commit d48f4c9

Please sign in to comment.