Add support for calculating multiple items (#14)

* Initial GUI work and basic functionality

* New implementation with linkedlist

* Use record for groupcraft

* Fix small bug with updating calculator and removing items properly

* Fix not saving on logout on client

* Restore tag workaround

* Fix format errors

* Revert using * in imports

* Spotless again

* update bs

* update deps

---------

Co-authored-by: Caedis <[email protected]>
This commit is contained in:
BmandkandCaedis authored and GitHub committed 2024-08-06 18:59:17 -05:00
1 parent 949664b33c
commit da39c8e14a
8 files changed
+173 -56

No files matched your search

@@ -2,8 +2,8 @@ package me.towdium.jecalculation.event.handlers;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.InputEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.common.network.FMLNetworkEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import me.towdium.jecalculation.JustEnoughCalculation;
@@ -24,14 +24,9 @@ public class FMLBusEventHandler {
JecaGui.onKey();
}
/**
* No effect at client only
*
* @param event event
*/
@Deprecated
@SubscribeEvent
public void onLogout(PlayerEvent.PlayerLoggedOutEvent event) {
public void onLogout(FMLNetworkEvent.ClientDisconnectionFromServerEvent event) {
JustEnoughCalculation.logger.info("on log out event");
Controller.writeToLocal();
LPlaceholder.onLogOut();