mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-08 12:34:53 +00:00
Merge pull request #16 from GTNewHorizons/QuickFixLoki
Fix Loki Ring text being wrong most of the time on servers
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user