From 55d4f9ae099d8e471b7194d79cc2c9fbcb78d6d2 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Tue, 19 Dec 2023 19:28:06 -0600 Subject: [PATCH] clean: move private bulkUpdate method to updateCosmetic since it was just using that method anyways --- .../com/hibiscusmc/hmccosmetics/user/CosmeticUser.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/user/CosmeticUser.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/user/CosmeticUser.java index e4d8763c..8e800ae1 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/user/CosmeticUser.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/user/CosmeticUser.java @@ -188,11 +188,7 @@ public class CosmeticUser { } public void updateCosmetic() { - bulkUpdateCosmetic(); - } - - private void bulkUpdateCosmetic() { - MessagesUtil.sendDebugMessages("bulkUpdateCosmetic - start"); + MessagesUtil.sendDebugMessages("updateCosmetic (All) - start"); HashMap items = new HashMap<>(); for (Cosmetic cosmetic : getCosmetics()) { @@ -208,7 +204,7 @@ public class CosmeticUser { } if (items.isEmpty()) return; NMSHandlers.getHandler().equipmentSlotUpdate(getEntity().getEntityId(), items, PlayerUtils.getNearbyPlayers(getEntity().getLocation())); - MessagesUtil.sendDebugMessages("bulkUpdateCosmetic - end - " + items.size()); + MessagesUtil.sendDebugMessages("updateCosmetic (All) - end - " + items.size()); } public ItemStack getUserCosmeticItem(CosmeticSlot slot) {