Fixed display reverting twice (old legacy code)
This commit is contained in:
@@ -18,6 +18,7 @@ import java.util.List;
|
||||
public class TalismanDisplay extends DisplayModule {
|
||||
/**
|
||||
* Instantiate talisman display.
|
||||
*
|
||||
* @param plugin Instance of Talismans.
|
||||
*/
|
||||
public TalismanDisplay(@NotNull final EcoPlugin plugin) {
|
||||
@@ -26,13 +27,11 @@ public class TalismanDisplay extends DisplayModule {
|
||||
|
||||
@Override
|
||||
public void display(@NotNull final ItemStack itemStack,
|
||||
@NotNull final Object... args) {
|
||||
@NotNull final Object... args) {
|
||||
if (!TalismanUtils.isTalismanMaterial(itemStack.getType())) {
|
||||
return;
|
||||
}
|
||||
|
||||
revert(itemStack);
|
||||
|
||||
ItemMeta meta = itemStack.getItemMeta();
|
||||
|
||||
assert meta != null;
|
||||
|
||||
Reference in New Issue
Block a user