diff --git a/src/main/resources/plugins/ItemTag.js b/src/main/resources/plugins/ItemTag.js index b825644..b90d88b 100644 --- a/src/main/resources/plugins/ItemTag.js +++ b/src/main/resources/plugins/ItemTag.js @@ -28,6 +28,8 @@ function load() { function enable() { switch (DetectServerType) { case ServerType.Bukkit: + var i = require('api/item').create('STONE') + if (!i.setCustomName) { return } event.on(self, 'ItemMergeEvent', function(event) { bukkit(event.target, event.entity.itemStack.amount + event.target.itemStack.amount); });