fixed bug

This commit is contained in:
aPunch 2012-02-05 05:31:08 -06:00
parent 1f5dd50d3f
commit 4067a85bce
2 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public abstract class CitizensNPC extends AbstractNPC {
@Override
public boolean openInventory(Player player) {
if (!isSpawned() || getTrait(Inventory.class).getContents() == null)
if (!isSpawned())
return false;
getInventory().setContents(getTrait(Inventory.class).getContents());
inventory.show(player);

View File

@ -17,6 +17,7 @@ public class Inventory implements Trait {
private ItemStack[] contents;
public Inventory() {
contents = new ItemStack[36];
}
public Inventory(org.bukkit.inventory.Inventory inventory) {