2
0
Эх сурвалжийг харах

ACTUALLY fix the NPE this time.

GJ 12 жил өмнө
parent
commit
d68dfe2a32

+ 1 - 1
src/main/java/com/gmail/nossr50/util/Misc.java

@@ -344,7 +344,7 @@ public final class Misc {
      */
     public static void dropItem(Location location, ItemStack itemStack) {
 
-        if (itemStack.getType() == null || itemStack.getType() == Material.AIR) {
+        if (itemStack == null || itemStack.getType() == Material.AIR) {
             return;
         }