1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-05 03:06:24 +02:00

Fix Shake poisoning the treasure cache with Wither skeletons

The returned ItemStack is modified for both Sheep and Skeletons, so a copy should be returned.
This commit is contained in:
riking 2013-11-06 21:03:13 -08:00
parent f17b5faaf6
commit bca0ca6766

@ -145,7 +145,7 @@ public final class Fishing {
cumulatedProbability += treasure.getDropChance(); cumulatedProbability += treasure.getDropChance();
if (dropProbability < cumulatedProbability) { if (dropProbability < cumulatedProbability) {
return treasure.getDrop(); return treasure.getDrop().clone();
} }
} }