mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-23 09:37:51 +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 */
|
||||
} else {
|
||||
canSpawn = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event));
|
||||
|
||||
if (event.getEntity() instanceof Item) {
|
||||
what = "drop items";
|
||||
} else {
|
||||
what = "place things";
|
||||
}
|
||||
}
|
||||
|
||||
if (!canSpawn) {
|
||||
tellErrorMessage(event, event.getCause(), target, what);
|
||||
|
Loading…
Reference in New Issue
Block a user