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