lastClicked = location;
}
public void createInventory(String name) {
if (this.getHandle().activeContainer instanceof ContainerPlayer) {
this.inventory = new SpoutCraftInventoryPlayer(this.getHandle().inventory, new SpoutCraftingInventory(((ContainerPlayer) this.getHandle().activeContainer).craftInventory, ((ContainerPlayer) this.getHandle().activeContainer).resultInventory));
if (name != null) {
this.inventory.setName(name);
}
} else {
this.inventory = new SpoutCraftInventoryPlayer(this.getHandle().inventory, new SpoutCraftingInventory(((ContainerPlayer) this.getHandle().defaultContainer).craftInventory, ((ContainerPlayer) this.getHandle().defaultContainer).resultInventory));
if (name != null) {
this.inventory.setName(name);
}
}
}