mirror of
https://github.com/BentoBoxWorld/Limits.git
synced 2024-11-22 18:46:02 +01:00
Fix for snowmen
This commit is contained in:
parent
6dedd50db5
commit
40fdf283b1
@ -262,7 +262,7 @@ public class EntityLimitListener implements Listener {
|
|||||||
if (body.getType().equals(Material.SNOW_BLOCK)) {
|
if (body.getType().equals(Material.SNOW_BLOCK)) {
|
||||||
// Check for head
|
// Check for head
|
||||||
Block head = body.getRelative(bf);
|
Block head = body.getRelative(bf);
|
||||||
if (head.getType().equals(Material.CARVED_PUMPKIN)) {
|
if (head.getType() == Material.CARVED_PUMPKIN || head.getType() == Material.JACK_O_LANTERN) {
|
||||||
// Erase
|
// Erase
|
||||||
addon.getBlockLimitListener().removeBlock(body);
|
addon.getBlockLimitListener().removeBlock(body);
|
||||||
addon.getBlockLimitListener().removeBlock(head);
|
addon.getBlockLimitListener().removeBlock(head);
|
||||||
|
Loading…
Reference in New Issue
Block a user