Fix MetaItemStack canSpawn() method to try it on a clone, readd check to /give and /i

This commit is contained in:
vemacs 2015-06-04 11:18:47 -06:00
parent 14c4ed8379
commit ff3b1e810f
3 changed files with 12 additions and 3 deletions

View file

@ -90,7 +90,7 @@ public class MetaItemStack {
public boolean canSpawn(final IEssentials ess) {
try {
ess.getServer().getUnsafe().modifyItemStack(stack, "{}");
ess.getServer().getUnsafe().modifyItemStack(stack.clone(), "{}");
return true;
} catch (NullPointerException npe) {
if (ess.getSettings().isDebug()) {