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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user