Skip to content

Commit

Permalink
[CORE] Fix Build - ItemFrame not targeted properly
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfstorm <[email protected]>
  • Loading branch information
Wolfieheart committed Jul 24, 2021
1 parent aac13c0 commit 2d94b22
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ public void editArmorStand(ArmorStand armorStand) {

public void editItemFrame(ItemFrame itemFrame) {
if (!getPlayer().hasPermission("asedit.basic")) return;
itemFrame = attemptTarget(itemFrame);
switch (eMode) {
case ITEMFRAME:
toggleVisible(itemFrame);
toggleItemFrameVisible(itemFrame);
break;
case RESET:
itemFrame.setVisible(true);
break;
case NONE:
sendMessage("nomode", null);
break;
Expand Down Expand Up @@ -345,7 +345,7 @@ void toggleVisible(ArmorStand armorStand) {
if (!getPlayer().hasPermission("asedit.invisible")) return;
armorStand.setVisible(!armorStand.isVisible());
}
void toggleVisible(ItemFrame itemFrame) {
void toggleItemFrameVisible(ItemFrame itemFrame) {
if (!getPlayer().hasPermission("asedit.basic")) return;
itemFrame.setVisible(!itemFrame.isVisible());
}
Expand Down

0 comments on commit 2d94b22

Please sign in to comment.