9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 04:19:28 +00:00

condense if statements

This commit is contained in:
LoJoSho
2023-02-20 18:45:52 -06:00
parent 0e1c9b3f7e
commit b1a35df7b5

View File

@@ -25,8 +25,7 @@ public class CosmeticBackpackType extends Cosmetic {
Player player = Bukkit.getPlayer(user.getUniqueId());
Location loc = player.getLocation().clone().add(0, 2, 0);
if (user.isInWardrobe()) return;
if (!user.isBackupSpawned()) return;
if (user.isInWardrobe() || !user.isBackupSpawned()) return;
if (loc.getWorld() != user.getUserBackpackManager().getArmorstand().getWorld()) {
user.getUserBackpackManager().getArmorstand().teleport(loc);
}