forked from github-mirror/CoreProtect
Fix NullPointerException on PurPur servers when destination hopper has moved (fixes #885)
This commit is contained in:
1 parent
f0aad273f1
commit
9cadca9acb
2 files changed
+5
No files matched your search
@@ -173,6 +173,7 @@ Desktop.ini
|
|||||||
## Misc.
|
## Misc.
|
||||||
#############
|
#############
|
||||||
|
|
||||||
|
AGENTS.md
|
||||||
.cursorrules
|
.cursorrules
|
||||||
.windsurfrules
|
.windsurfrules
|
||||||
.clinerules
|
.clinerules
|
||||||
|
|||||||
@@ -142,6 +142,10 @@ public final class HopperPullListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Location destinationLocation = destinationHolder.getInventory().getLocation();
|
Location destinationLocation = destinationHolder.getInventory().getLocation();
|
||||||
|
if (destinationLocation == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
List<Object> list = ConfigHandler.transactingChest.get(destinationLocation.getWorld().getUID().toString() + "." + destinationLocation.getBlockX() + "." + destinationLocation.getBlockY() + "." + destinationLocation.getBlockZ());
|
List<Object> list = ConfigHandler.transactingChest.get(destinationLocation.getWorld().getUID().toString() + "." + destinationLocation.getBlockX() + "." + destinationLocation.getBlockY() + "." + destinationLocation.getBlockZ());
|
||||||
if (list != null) {
|
if (list != null) {
|
||||||
list.add(new ItemStack[] { null, movedItem });
|
list.add(new ItemStack[] { null, movedItem });
|
||||||
|
|||||||
Reference in new issue
Block a user