Added display-without-meta option
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.willfp.eco.core.display;
|
||||
|
||||
import com.willfp.eco.core.Eco;
|
||||
import com.willfp.eco.core.fast.FastItemStack;
|
||||
import com.willfp.eco.core.integrations.guidetection.GUIDetectionManager;
|
||||
import com.willfp.eco.util.NamespacedKeyUtils;
|
||||
@@ -68,8 +69,10 @@ public final class Display {
|
||||
|
||||
Display.revert(itemStack);
|
||||
|
||||
if (!itemStack.hasItemMeta()) {
|
||||
return itemStack;
|
||||
if (!Eco.get().getEcoPlugin().getConfigYml().getBool("display-without-meta")) {
|
||||
if (!itemStack.hasItemMeta()) {
|
||||
return itemStack;
|
||||
}
|
||||
}
|
||||
|
||||
ItemStack original = itemStack.clone();
|
||||
|
||||
@@ -97,3 +97,8 @@ math-cache-ttl: 200
|
||||
# counts. This is completely anonymous and no personal information is logged. This data
|
||||
# is primarily used for optimisation and server insights.
|
||||
playerflow: true
|
||||
|
||||
# If the packet display system should activate on items that have no meta. This is disabled
|
||||
# by default for performance reasons, but if you want to use the packet display system on
|
||||
# items that have no meta, then you can enable this option.
|
||||
display-without-meta: false
|
||||
Reference in New Issue
Block a user