Fix breaking decorated pots with bow and arrow
This commit is contained in:
parent
fc816340d5
commit
adb05fce8b
|
|
@ -861,7 +861,10 @@ public class BlockEventHandler implements Listener
|
||||||
Block block = event.getHitBlock();
|
Block block = event.getHitBlock();
|
||||||
|
|
||||||
// Ensure projectile affects block.
|
// 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;
|
return;
|
||||||
|
|
||||||
Claim claim = dataStore.getClaimAt(block.getLocation(), false, null);
|
Claim claim = dataStore.getClaimAt(block.getLocation(), false, null);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user