mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-10 17:57:37 +00:00
Check for null in ItemStacks
This commit is contained in:
parent
a62cf3a059
commit
742b6b61fa
@ -640,7 +640,7 @@ public class BukkitWorld extends LocalWorld {
|
|||||||
|
|
||||||
for (int i = 0; i < size; ++i) {
|
for (int i = 0; i < size; ++i) {
|
||||||
ItemStack bukkitStack = inven.getItem(i);
|
ItemStack bukkitStack = inven.getItem(i);
|
||||||
if (bukkitStack.getTypeId() > 0) {
|
if (bukkitStack != null && bukkitStack.getTypeId() > 0) {
|
||||||
contents[i] = new BaseItemStack(
|
contents[i] = new BaseItemStack(
|
||||||
bukkitStack.getTypeId(),
|
bukkitStack.getTypeId(),
|
||||||
bukkitStack.getAmount(),
|
bukkitStack.getAmount(),
|
||||||
|
Loading…
Reference in New Issue
Block a user