mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-23 17:47:35 +01:00
Removed unnecessary if branch
This commit is contained in:
parent
e52875bd0b
commit
0fa92d4836
@ -328,13 +328,8 @@ public void onSpawnEntity(SpawnEntityEvent event) {
|
|||||||
/* Everything else */
|
/* Everything else */
|
||||||
} else {
|
} else {
|
||||||
canSpawn = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event));
|
canSpawn = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event));
|
||||||
|
|
||||||
if (event.getEntity() instanceof Item) {
|
|
||||||
what = "drop items";
|
|
||||||
} else {
|
|
||||||
what = "place things";
|
what = "place things";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!canSpawn) {
|
if (!canSpawn) {
|
||||||
tellErrorMessage(event, event.getCause(), target, what);
|
tellErrorMessage(event, event.getCause(), target, what);
|
||||||
|
Loading…
Reference in New Issue
Block a user