mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
parent
60266c0505
commit
fa9ada8f82
1 changed files with 3 additions and 3 deletions
|
@ -92,9 +92,9 @@ public class CommonEvents{
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onLogInEvent(EntityJoinWorldEvent event){
|
public void onLogInEvent(PlayerEvent.PlayerLoggedInEvent event){
|
||||||
if(!event.getEntity().worldObj.isRemote && event.getEntity() instanceof EntityPlayerMP){
|
if(!event.player.worldObj.isRemote && event.player instanceof EntityPlayerMP){
|
||||||
EntityPlayerMP player = (EntityPlayerMP)event.getEntity();
|
EntityPlayerMP player = (EntityPlayerMP)event.player;
|
||||||
PlayerData.PlayerSave data = PlayerData.getDataFromPlayer(player);
|
PlayerData.PlayerSave data = PlayerData.getDataFromPlayer(player);
|
||||||
if(!data.theCompound.hasNoTags()){
|
if(!data.theCompound.hasNoTags()){
|
||||||
NBTTagCompound compound = new NBTTagCompound();
|
NBTTagCompound compound = new NBTTagCompound();
|
||||||
|
|
Loading…
Reference in a new issue