mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-04-10 13:46:24 +02:00
ACTUALLY fix the NPE this time.
This commit is contained in:
parent
f3b119b91b
commit
d68dfe2a32
@ -344,7 +344,7 @@ public final class Misc {
|
|||||||
*/
|
*/
|
||||||
public static void dropItem(Location location, ItemStack itemStack) {
|
public static void dropItem(Location location, ItemStack itemStack) {
|
||||||
|
|
||||||
if (itemStack.getType() == null || itemStack.getType() == Material.AIR) {
|
if (itemStack == null || itemStack.getType() == Material.AIR) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user