Merge pull request #16 from GTNewHorizons/QuickFixLoki

Fix Loki Ring text being wrong most of the time on servers
This commit is contained in:
Martin Robertz authored and GitHub committed 2022-09-20 22:58:00 +02:00
commit 9be15c8ecd
2 files changed
+2 -1

No files matched your search

@@ -142,7 +142,7 @@ public class ItemLokiRing extends ItemRelicBauble implements IExtendedWireframeC
}
}
public static void toggleMode(ItemStack stack) {
stack.stackTagCompound.setBoolean(TAG_MODE,!stack.stackTagCompound.getBoolean(TAG_MODE));
stack.stackTagCompound.setBoolean(TAG_MODE, !isRingEnabled(stack));
}
@SideOnly(Side.CLIENT)
public static void renderHUDNotification(){
@@ -29,6 +29,7 @@ public class PacketLokiToggleAck implements IMessage, IMessageHandler<PacketLoki
Minecraft mc = Minecraft.getMinecraft();
final ItemStack aRing = ItemLokiRing.getLokiRing(mc.thePlayer) ;
if (aRing != null) {
ItemLokiRing.toggleMode(aRing);
ItemLokiRing.renderHUDNotification();
}