From 83492e7bf2f0edc2ed27be584d78fef973eba7cf Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Tue, 26 May 2015 14:44:43 +0100 Subject: [PATCH] SPIGOT-927: Only schedule ticks for blocks in loaded chunks --- CraftBukkit-Patches/0157-Schedule-Hopper-Ticks.patch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CraftBukkit-Patches/0157-Schedule-Hopper-Ticks.patch b/CraftBukkit-Patches/0157-Schedule-Hopper-Ticks.patch index 487723367..1431dbc66 100644 --- a/CraftBukkit-Patches/0157-Schedule-Hopper-Ticks.patch +++ b/CraftBukkit-Patches/0157-Schedule-Hopper-Ticks.patch @@ -177,6 +177,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Helper method for scheduleTicks. If the hopper at blockposition is pointed + // toward this tile, then make the hopper active + private void scheduleTick(BlockPosition blockposition) { ++ if (!world.isLoaded(blockposition)) { ++ return; ++ } + TileEntity tileEntity = this.world.getTileEntity(blockposition); + if (tileEntity instanceof TileEntityHopper) { + // i is the metadeta assoiated with the direction the hopper faces.