This commit is contained in:
hyperdefined
2025-01-25 16:59:11 -05:00
parent d5a4c4e3ef
commit 73254b3c88

View File

@@ -43,7 +43,6 @@ public class PrepareCraft implements Listener {
if (item == null || item.getType() != Material.PAPER) { if (item == null || item.getType() != Material.PAPER) {
continue; continue;
} }
toolStats.logger.info(item.getType().toString());
ItemMeta meta = item.getItemMeta(); ItemMeta meta = item.getItemMeta();
if (meta == null) { if (meta == null) {
continue; continue;
@@ -51,10 +50,7 @@ public class PrepareCraft implements Listener {
// if the paper item has our PDC, cancel it // if the paper item has our PDC, cancel it
PersistentDataContainer container = meta.getPersistentDataContainer(); PersistentDataContainer container = meta.getPersistentDataContainer();
if (container.has(toolStats.tokenType)) { if (container.has(toolStats.tokenType)) {
toolStats.logger.info("has PDC");
event.getInventory().setResult(null); event.getInventory().setResult(null);
} else {
toolStats.logger.info("no PDC");
} }
} }
} }