mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-12-22 04:37:46 +01:00
Fixed log stripping giving no exp (woodcutting professions)
This commit is contained in:
parent
61efa519c2
commit
25ca6e32a4
@ -157,6 +157,11 @@ public class BlockListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void registerPlayerPlacedBlocksTag(BlockPlaceEvent event) {
|
||||
|
||||
// Ignore log stripping
|
||||
if (event.getBlock().getType().name().startsWith("STRIPPED_") && event.getItemInHand().getType().name().endsWith("_AXE"))
|
||||
return;
|
||||
|
||||
event.getBlock().setMetadata("player_placed", new FixedMetadataValue(MMOCore.plugin, true));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user