浏览代码

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.
riking 11 年之前
父节点
当前提交
bca0ca6766
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java

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