mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 00:07:37 +00:00
y u hate me so much
This commit is contained in:
1 parent
8c79bd31b7
commit
70c8fd1131
1 file changed
-12
@@ -199,16 +199,4 @@ public class Chisel {
|
||||
Configurations.refreshConfig();
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void thankYou(EntityJoinWorldEvent event){
|
||||
if(!event.world.isRemote && event.entity instanceof EntityPlayerMP){
|
||||
EntityPlayerMP player = (EntityPlayerMP) event.entity;
|
||||
if(!player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG).getBoolean("thanked")){
|
||||
NBTTagCompound tag = player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG);
|
||||
tag.setBoolean("thanked", true);
|
||||
player.addChatMessage(new ChatComponentText("Thank you for half a million downloads! - The Chisel Team"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user