mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fixed #957
This commit is contained in:
parent
58eeeb16d4
commit
7bbd359be8
1 changed files with 4 additions and 1 deletions
|
@ -1196,6 +1196,9 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case BUILD_IRONGOLEM:
|
||||||
|
case BUILD_WITHER:
|
||||||
|
case BUILD_SNOWMAN:
|
||||||
case CUSTOM:
|
case CUSTOM:
|
||||||
if (!area.SPAWN_CUSTOM && entity.getType().getTypeId() != 30) {
|
if (!area.SPAWN_CUSTOM && entity.getType().getTypeId() != 30) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
@ -1505,7 +1508,7 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (fireball.getShooter() instanceof BlockProjectileSource) {
|
} else if (fireball.getShooter() instanceof BlockProjectileSource) {
|
||||||
final Block shooter = (Block) ((BlockProjectileSource) fireball.getShooter()).getBlock();
|
final Block shooter = ((BlockProjectileSource) fireball.getShooter()).getBlock();
|
||||||
if (BukkitUtil.getLocation(shooter.getLocation()).getPlot() == null) {
|
if (BukkitUtil.getLocation(shooter.getLocation()).getPlot() == null) {
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue