2
0
nossr50 4 жил өмнө
parent
commit
12d0a220da

+ 6 - 0
Changelog.txt

@@ -1,3 +1,9 @@
+Version 2.1.178
+    Item replacement in vanilla fishing override back to SALMON from AIR (see notes)
+
+    NOTES:
+    Apparently can't set items to AIR, my bad. I'll look into another solution for fishing plugin compatibility soon.
+
 Version 2.1.177
     Environmentally aware will now protect Wolves from Magma blocks
     Fixed a bug where mcMMO would fail to update a players name when it detected a name change

+ 1 - 1
pom.xml

@@ -2,7 +2,7 @@
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.gmail.nossr50.mcMMO</groupId>
     <artifactId>mcMMO</artifactId>
-    <version>2.1.177</version>
+    <version>2.1.178</version>
     <name>mcMMO</name>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <scm>

+ 1 - 1
src/main/java/com/gmail/nossr50/listeners/PlayerListener.java

@@ -298,7 +298,7 @@ public class PlayerListener implements Listener {
                             fishingCatch.getItemStack().getType() != Material.TROPICAL_FISH &&
                             fishingCatch.getItemStack().getType() != Material.PUFFERFISH) {
 
-                        ItemStack replacementCatch = new ItemStack(Material.AIR);
+                        ItemStack replacementCatch = new ItemStack(Material.SALMON, 1);
 
                         McMMOReplaceVanillaTreasureEvent replaceVanillaTreasureEvent = new McMMOReplaceVanillaTreasureEvent(fishingCatch, replacementCatch);
                         Bukkit.getPluginManager().callEvent(replaceVanillaTreasureEvent);