Fix breaking decorated pots with bow and arrow

This commit is contained in:
Len 2024-01-05 19:41:43 +01:00
parent fc816340d5
commit adb05fce8b

View File

@ -861,7 +861,10 @@ public class BlockEventHandler implements Listener
Block block = event.getHitBlock();
// Ensure projectile affects block.
if (block == null || !(block.getType() == Material.CHORUS_FLOWER || block.getType() == Material.TARGET))
if (block == null || !(
block.getType() == Material.CHORUS_FLOWER ||
block.getType() == Material.TARGET ||
block.getType() == Material.DECORATED_POT))
return;
Claim claim = dataStore.getClaimAt(block.getLocation(), false, null);