mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
add back setShouldAbortSpawn
This commit is contained in:
parent
89318be5f4
commit
2f5ce67154
1 changed files with 3 additions and 0 deletions
|
@ -226,6 +226,7 @@ public class PaperListener implements Listener {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case DROPPED_ITEM:
|
case DROPPED_ITEM:
|
||||||
if (Settings.Enabled_Components.KILL_ROAD_ITEMS) {
|
if (Settings.Enabled_Components.KILL_ROAD_ITEMS) {
|
||||||
|
event.setShouldAbortSpawn(true);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -233,10 +234,12 @@ public class PaperListener implements Listener {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (type.isAlive()) {
|
if (type.isAlive()) {
|
||||||
|
event.setShouldAbortSpawn(true);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!area.isMiscSpawnUnowned() && !type.isAlive()) {
|
if (!area.isMiscSpawnUnowned() && !type.isAlive()) {
|
||||||
|
event.setShouldAbortSpawn(true);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue