mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-24 06:23:59 +00:00
Fix MetaItemStack canSpawn() method to try it on a clone, readd check to /give and /i
This commit is contained in:
parent
14c4ed8379
commit
ff3b1e810f
3 changed files with 12 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue