Fixed typo
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package com.willfp.eco.core.display;
|
||||
|
||||
import com.willfp.eco.core.fast.FastItemStack;
|
||||
import lombok.experimental.UtilityClass;
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
@@ -75,6 +77,8 @@ public class Display {
|
||||
return itemStack; // return early if there's no customization of the item
|
||||
}
|
||||
|
||||
Bukkit.getLogger().info(FastItemStack.wrap(itemStack).isModifyingInstance() ? "CIS!" : "Not CIS :(");
|
||||
|
||||
Map<String, Object[]> pluginVarArgs = new HashMap<>();
|
||||
|
||||
for (DisplayPriority priority : DisplayPriority.values()) {
|
||||
|
||||
@@ -17,11 +17,11 @@ import java.util.Map;
|
||||
|
||||
public class EcoFastItemStack implements FastItemStack {
|
||||
private final ItemStack handle;
|
||||
private final boolean isCMS;
|
||||
private final boolean isCIS;
|
||||
|
||||
public EcoFastItemStack(@NotNull final org.bukkit.inventory.ItemStack itemStack) {
|
||||
this.handle = FastItemStackUtils.getNMSStack(itemStack);
|
||||
this.isCMS = itemStack instanceof CraftItemStack;
|
||||
this.isCIS = itemStack instanceof CraftItemStack;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -66,6 +66,6 @@ public class EcoFastItemStack implements FastItemStack {
|
||||
|
||||
@Override
|
||||
public boolean isModifyingInstance() {
|
||||
return isCMS;
|
||||
return isCIS;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,11 +17,11 @@ import java.util.Map;
|
||||
|
||||
public class EcoFastItemStack implements FastItemStack {
|
||||
private final ItemStack handle;
|
||||
private final boolean isCMS;
|
||||
private final boolean isCIS;
|
||||
|
||||
public EcoFastItemStack(@NotNull final org.bukkit.inventory.ItemStack itemStack) {
|
||||
this.handle = FastItemStackUtils.getNMSStack(itemStack);
|
||||
this.isCMS = itemStack instanceof CraftItemStack;
|
||||
this.isCIS = itemStack instanceof CraftItemStack;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -66,6 +66,6 @@ public class EcoFastItemStack implements FastItemStack {
|
||||
|
||||
@Override
|
||||
public boolean isModifyingInstance() {
|
||||
return isCMS;
|
||||
return isCIS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user