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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -301,7 +301,7 @@ public class CosmeticUser {
|
||||
userBackpackManager = null;
|
||||
}
|
||||
|
||||
public boolean isBackupSpawned() {
|
||||
public boolean isBackpackSpawned() {
|
||||
if (this.userBackpackManager == null) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user