Fix NullPointerException on PurPur servers when destination hopper has moved (fixes #885)

This commit is contained in:
Intelli committed 2026-04-22 16:49:59 -06:00
1 parent f0aad273f1
commit 9cadca9acb
2 files changed
+5

No files matched your search

+1
View File
@@ -173,6 +173,7 @@ Desktop.ini
## Misc.
#############
AGENTS.md
.cursorrules
.windsurfrules
.clinerules
@@ -142,6 +142,10 @@ public final class HopperPullListener {
}
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());
if (list != null) {
list.add(new ItemStack[] { null, movedItem });