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();
}
}