1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-18 01:42:32 +01: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

View File

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