mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +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:
@ -145,7 +145,7 @@ public final class Fishing {
|
||||
cumulatedProbability += treasure.getDropChance();
|
||||
|
||||
if (dropProbability < cumulatedProbability) {
|
||||
return treasure.getDrop();
|
||||
return treasure.getDrop().clone();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user