mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
Add my changes, Client runs, I broke Smeltery ATM, Needs to be fixed :)
This commit is contained in:
1 parent
57b6f72c2b
commit
c1a92807cd
22 files changed
+185
-81
No files matched your search
@@ -2,7 +2,7 @@ package tconstruct.util.player;
|
||||
|
||||
import cpw.mods.fml.common.*;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent.*;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
@@ -33,24 +33,24 @@ public class TPlayerHandler
|
||||
public ConcurrentHashMap<String, TPlayerStats> playerStats = new ConcurrentHashMap<String, TPlayerStats>();
|
||||
|
||||
@SubscribeEvent
|
||||
public void PlayerLoggedInEvent (PlayerEvent event)
|
||||
public void PlayerLoggedInEvent (PlayerLoggedInEvent event)
|
||||
{
|
||||
onPlayerLogin(event.player);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void PlayerLoggedOutEvent (PlayerEvent event)
|
||||
public void PlayerLoggedOutEvent (PlayerLoggedOutEvent event)
|
||||
{
|
||||
savePlayerStats(event.player, true);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onPlayerChangedDimension (PlayerEvent event)
|
||||
public void onPlayerChangedDimension (PlayerChangedDimensionEvent event)
|
||||
{
|
||||
savePlayerStats(event.player, false);
|
||||
}
|
||||
@SubscribeEvent
|
||||
public void onPlayerRespawn (PlayerEvent event)
|
||||
public void onPlayerRespawn (PlayerRespawnEvent event)
|
||||
{
|
||||
onPlayerRespawn(event.player);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user