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

clean: refactor spelling mistake in isBackpackSpawned

This commit is contained in:
LoJoSho
2023-03-02 19:19:45 -06:00
parent acf31009d5
commit d0092a2ffe
3 changed files with 3 additions and 4 deletions

View File

@@ -3,7 +3,6 @@ package com.hibiscusmc.hmccosmetics.cosmetic.types;
import com.hibiscusmc.hmccosmetics.cosmetic.Cosmetic;
import com.hibiscusmc.hmccosmetics.user.CosmeticUser;
import com.hibiscusmc.hmccosmetics.user.manager.UserBackpackManager;
import com.hibiscusmc.hmccosmetics.util.MessagesUtil;
import com.hibiscusmc.hmccosmetics.util.packets.PacketManager;
import org.bukkit.Bukkit;
import org.bukkit.Location;
@@ -30,7 +29,7 @@ public class CosmeticBackpackType extends Cosmetic {
Location loc = player.getLocation().clone().add(0, 2, 0);
if (user.isInWardrobe() || !user.isBackupSpawned()) return;
if (user.isInWardrobe() || !user.isBackpackSpawned()) return;
if (loc.getWorld() != user.getUserBackpackManager().getArmorStand().getWorld()) {
user.getUserBackpackManager().getArmorStand().teleport(loc);
}

View File

@@ -173,7 +173,7 @@ public class PlayerGameListener implements Listener {
if (!user.hasCosmeticInSlot(CosmeticSlot.BACKPACK)) return;
Pose pose = event.getPose();
if (pose.equals(Pose.STANDING)) {
if (!user.isBackupSpawned()) {
if (!user.isBackpackSpawned()) {
user.spawnBackpack((CosmeticBackpackType) user.getCosmetic(CosmeticSlot.BACKPACK));
}
return;

View File

@@ -301,7 +301,7 @@ public class CosmeticUser {
userBackpackManager = null;
}
public boolean isBackupSpawned() {
public boolean isBackpackSpawned() {
if (this.userBackpackManager == null) return false;
return true;
}