Re-enable Item Cube recipes.
This commit is contained in:
parent
be2b21ba2f
commit
7ff8c0faff
Binary file not shown.
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user