Browse Source

Temporarily removed unarmed item pickup until it gets fixed

nossr50 6 years ago
parent
commit
7e5a8bc659
3 changed files with 8 additions and 5 deletions
  1. 3 0
      Changelog.txt
  2. 1 1
      pom.xml
  3. 4 4
      src/main/java/com/gmail/nossr50/listeners/PlayerListener.java

+ 3 - 0
Changelog.txt

@@ -7,6 +7,9 @@ Key:
   ! Change
   - Removal
 
+Version 2.1.3
+    Temporarily removed the unarmed no-item pickup feature until its fixed
+
 Version 2.1.2
     (Compatibility) mcMMO now deals custom damage type for all damage sources to be more compatible with other plugins (such as anti-cheat)
     (Perks) Fixed a bug where the Lucky perk wasn't adding to success

+ 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.2</version>
+    <version>2.1.3-SNAPSHOT</version>
     <name>mcMMO</name>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <scm>

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

@@ -393,16 +393,16 @@ public class PlayerListener implements Listener {
                 }
             }
 
-            if (player.getInventory().getItemInMainHand().getType() == Material.AIR) {
+            /*if (player.getInventory().getItemInMainHand().getType() == Material.AIR) {
                 Unarmed.handleItemPickup(player, event);
-                /*boolean cancel = Config.getInstance().getUnarmedItemPickupDisabled() || pickupSuccess;
+                *//*boolean cancel = Config.getInstance().getUnarmedItemPickupDisabled() || pickupSuccess;
                 event.setCancelled(cancel);
 
                 if (pickupSuccess) {
 
                     return;
-                }*/
-            }
+                }*//*
+            }*/
         }
     }