mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-08-05 16:48:51 +00:00
21 lines
976 B
Diff
21 lines
976 B
Diff
From ead1552c2df22903a65e42b0654fb2f3c46032e9 Mon Sep 17 00:00:00 2001
|
|
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
|
Date: Wed, 5 Mar 2014 20:27:27 +0000
|
|
Subject: [PATCH] Prevent hoppers from loading chunks
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/TileEntityHopper.java b/src/main/java/net/minecraft/server/TileEntityHopper.java
|
|
index d0d271475..bb41d4780 100644
|
|
--- a/src/main/java/net/minecraft/server/TileEntityHopper.java
|
|
+++ b/src/main/java/net/minecraft/server/TileEntityHopper.java
|
|
@@ -523,6 +523,7 @@ public class TileEntityHopper extends TileEntityLootable implements IHopper, ITi
|
|
public static IInventory a(World world, double d0, double d1, double d2) {
|
|
Object object = null;
|
|
BlockPosition blockposition = new BlockPosition(d0, d1, d2);
|
|
+ if ( !world.isLoaded( blockposition ) ) return null; // Spigot
|
|
IBlockData iblockdata = world.getType(blockposition);
|
|
Block block = iblockdata.getBlock();
|
|
|
|
--
|
|
2.17.1
|
|
|