geforkt von Mirrors/Paper
05466e3b47
Upstream has released updates that appear to apply compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing. Bukkit Changes: d2834556 SPIGOT-4219: Event for PigZombies angering. CraftBukkit Changes:a9c796f1
SPIGOT-4184: Fix furnaces not matching Vanilla smelt or animations195f071e
SPIGOT-4219: Event for PigZombies angering.5e3082c7
SPIGOT-4230: Improve legacy block types
24 Zeilen
1.1 KiB
Diff
24 Zeilen
1.1 KiB
Diff
From 09e0e636a258cd813f6833d95c9c226037644891 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Mon, 2 Jan 2017 16:32:56 -0500
|
|
Subject: [PATCH] ShulkerBox Dupe Prevention
|
|
|
|
This ensures that Shulker Boxes can never drop their contents twice, and
|
|
that the inventory is cleared incase it some how also got saved to the world.
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockShulkerBox.java b/src/main/java/net/minecraft/server/BlockShulkerBox.java
|
|
index 82b4d82c0e..d00bd9d610 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockShulkerBox.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockShulkerBox.java
|
|
@@ -100,6 +100,7 @@ public class BlockShulkerBox extends BlockTileEntity {
|
|
}
|
|
|
|
a(world, blockposition, itemstack);
|
|
+ tileentityshulkerbox.clear(); // Paper - This was intended to be called in Vanilla (is checked in the if statement above if has been called) - Fixes dupe issues
|
|
}
|
|
}
|
|
world.updateAdjacentComparators(blockposition, iblockdata.getBlock());
|
|
--
|
|
2.18.0
|
|
|