mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-28 22:57:29 +02:00
Removed unnecessary if branch
This commit is contained in:
parent
e52875bd0b
commit
0fa92d4836
@ -328,12 +328,7 @@ 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));
|
||||||
|
what = "place things";
|
||||||
if (event.getEntity() instanceof Item) {
|
|
||||||
what = "drop items";
|
|
||||||
} else {
|
|
||||||
what = "place things";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!canSpawn) {
|
if (!canSpawn) {
|
||||||
|
Loading…
Reference in New Issue
Block a user