Skip to content
Success

Changes

Summary

  1. Make TPlayerStats an IExtendedEntityProperties + associated changes (details)
Commit 244428928c2d755f4ee88a93ca1944c1c6c221e7 by dcseee-github
Make TPlayerStats an IExtendedEntityProperties + associated changes

Inventory + Knapsack inventory (and whether you have the manual) is now synced
whenever the player data is (e.g. on disconnect, on changing dimensions and
when going into the menu in SSP.

Other changes:
* Remove Armor sync packet as it's not needed anymore
* Move dropping of inventory and knapsack items from TEventHandler to
     TPlayerHandler. Changes to drop items will all other inventory items.
* Make playerstats store in TPlayerHandler and make it use player UUIDs
     instead of player names (for compatibility with 1.7.6+)
* Don't sync inventory manually on logging off / changing dimension
     (it's unneeded)
The file was modifiedsrc/main/java/tconstruct/client/TProxyClient.java (diff)
The file was modifiedsrc/main/java/tconstruct/client/TClientEvents.java (diff)
The file was modifiedsrc/main/java/tconstruct/common/TProxyCommon.java (diff)
The file was modifiedsrc/main/java/tconstruct/util/player/TPlayerStats.java (diff)
The file was modifiedsrc/main/java/tconstruct/TConstruct.java (diff)
The file was modifiedsrc/main/java/tconstruct/util/TCraftingHandler.java (diff)
The file was modifiedsrc/main/java/tconstruct/util/player/KnapsackInventory.java (diff)
The file was modifiedsrc/main/java/tconstruct/util/player/TPlayerHandler.java (diff)
The file was modifiedsrc/main/java/tconstruct/util/network/packet/PacketPipeline.java (diff)
The file was removedsrc/main/java/tconstruct/util/network/packet/PacketArmorSync.java
The file was modifiedsrc/main/java/tconstruct/items/armor/HeartCanister.java (diff)
The file was modifiedsrc/main/java/tconstruct/util/TEventHandler.java (diff)
The file was modifiedsrc/main/java/tconstruct/util/player/ArmorExtended.java (diff)