mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +00:00
classic
This commit is contained in:
@@ -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");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user