Fixed log stripping, path changing, etc not working

This commit is contained in:
Auxilor
2022-02-12 18:34:15 +00:00
parent 2c20e67587
commit 5441feb7d2

View File

@@ -3,6 +3,7 @@ package com.willfp.ecoitems.items
import com.willfp.eco.core.EcoPlugin
import com.willfp.eco.util.NumberUtils
import com.willfp.libreforge.updateEffects
import org.bukkit.Tag
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.block.BlockPlaceEvent
@@ -21,6 +22,9 @@ class ItemListener(
@EventHandler
fun onPlaceItem(event: BlockPlaceEvent) {
ItemUtils.getEcoItem(event.itemInHand) ?: return
if (event.itemInHand.type.isItem) {
return
}
event.isCancelled = true
}