Re-enable Item Cube recipes.

This commit is contained in:
sigonasr2 2016-06-28 06:11:32 -05:00
parent be2b21ba2f
commit 7ff8c0faff
2 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -4071,9 +4071,6 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
log("Found new item.",2); log("Found new item.",2);
itemcount++; itemcount++;
} }
} else {
//This isn't an item cube. Guess we cancel it.
ev.getInventory().setResult(new ItemStack(Material.AIR));
} }
} }
@ -4093,6 +4090,11 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
log("Set the result to "+newitem,2); log("Set the result to "+newitem,2);
ev.getInventory().setResult(newitem); ev.getInventory().setResult(newitem);
} }
if (newitem==null && netherstar!=null &&
itemcount==2) {
//This isn't an item cube. Guess we cancel it.
ev.getInventory().setResult(new ItemStack(Material.AIR));
}
//Look for the base material. //Look for the base material.
if (Artifact.isArtifact(ev.getInventory().getResult()) && result.getType()!=Material.STAINED_GLASS_PANE && GenericFunctions.isEquip(result)) { if (Artifact.isArtifact(ev.getInventory().getResult()) && result.getType()!=Material.STAINED_GLASS_PANE && GenericFunctions.isEquip(result)) {