From c2851b53fefa8bb791b32f87ca8e46b6000711fe Mon Sep 17 00:00:00 2001 From: Cricket Date: Thu, 25 Jun 2015 14:23:17 -0400 Subject: [PATCH 1/4] added some console stuffz --- .../java/com/cricketcraft/chisel/Chisel.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/com/cricketcraft/chisel/Chisel.java b/src/main/java/com/cricketcraft/chisel/Chisel.java index 9de3195e..0f248f5d 100644 --- a/src/main/java/com/cricketcraft/chisel/Chisel.java +++ b/src/main/java/com/cricketcraft/chisel/Chisel.java @@ -1,12 +1,16 @@ package com.cricketcraft.chisel; import java.io.File; +import java.util.logging.Level; import net.minecraft.block.Block; +import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.item.Item; +import net.minecraft.util.ChatComponentText; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.config.Configuration; +import net.minecraftforge.event.entity.EntityJoinWorldEvent; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -52,6 +56,8 @@ import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.GameRegistry.Type; +import static java.util.logging.Level.*; + @Mod(modid = Chisel.MOD_ID, name = Chisel.MOD_NAME, version = Chisel.VERSION, guiFactory = "com.cricketcraft.chisel.client.gui.GuiFactory", dependencies = "after:EE3;after:ForgeMultipart;after:Thaumcraft;after:appliedenergistics2;after:Railcraft;after:AWWayofTime;after:TwilightForest") public class Chisel { @@ -177,6 +183,8 @@ public class Chisel { public void postInit(FMLPostInitializationEvent event) { ChiselTabs.postInit(); Compatibility.init(event); + FMLLog.severe("Unable to lookup chisel:... is not an error, please do not treat it as such"); + FMLLog.bigWarning("In case you didn't see the red above I suggest you read it - Cricket"); } @EventHandler @@ -192,4 +200,12 @@ public class Chisel { Configurations.refreshConfig(); } } + + @SubscribeEvent + public void thankYou(EntityJoinWorldEvent event){ + if(!event.world.isRemote && event.entity instanceof EntityPlayerMP){ + EntityPlayerMP player = (EntityPlayerMP) event.entity; + player.addChatMessage(new ChatComponentText("Thank you for half a million downloads! - The Chisel Team")); + } + } } From feb458a6747a7aea33c5102b2fc19b43c04bb501 Mon Sep 17 00:00:00 2001 From: Cricket Date: Thu, 25 Jun 2015 14:25:06 -0400 Subject: [PATCH 2/4] added console stuffz --- changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog b/changelog index 185195fb..06d8d8fa 100644 --- a/changelog +++ b/changelog @@ -17,6 +17,7 @@ Changes - New "Hades" animation on the voidstone - Hex Plating is blast proof - Changed the ME Controller texture +- Slightly changed the texture of "Rusty Grate" Fixes - Packed Ice rendering and reduced the oil on it From 7b26ac24e619b20409a6e5819b322c7b7490753c Mon Sep 17 00:00:00 2001 From: Cricket Date: Thu, 25 Jun 2015 14:37:37 -0400 Subject: [PATCH 3/4] no spam --- src/main/java/com/cricketcraft/chisel/Chisel.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/cricketcraft/chisel/Chisel.java b/src/main/java/com/cricketcraft/chisel/Chisel.java index 0f248f5d..6a9ea1f3 100644 --- a/src/main/java/com/cricketcraft/chisel/Chisel.java +++ b/src/main/java/com/cricketcraft/chisel/Chisel.java @@ -4,8 +4,10 @@ import java.io.File; import java.util.logging.Level; import net.minecraft.block.Block; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.item.Item; +import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.ChatComponentText; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.config.Configuration; @@ -205,7 +207,11 @@ public class Chisel { public void thankYou(EntityJoinWorldEvent event){ if(!event.world.isRemote && event.entity instanceof EntityPlayerMP){ EntityPlayerMP player = (EntityPlayerMP) event.entity; - player.addChatMessage(new ChatComponentText("Thank you for half a million downloads! - The Chisel Team")); + 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")); + } } } } From 1275723db0309d9fb21602789da3b7867b0f7811 Mon Sep 17 00:00:00 2001 From: Cricket Date: Thu, 25 Jun 2015 14:38:40 -0400 Subject: [PATCH 4/4] im tired ok... --- src/main/java/com/cricketcraft/chisel/Chisel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/cricketcraft/chisel/Chisel.java b/src/main/java/com/cricketcraft/chisel/Chisel.java index 6a9ea1f3..d796dc59 100644 --- a/src/main/java/com/cricketcraft/chisel/Chisel.java +++ b/src/main/java/com/cricketcraft/chisel/Chisel.java @@ -207,7 +207,7 @@ public class Chisel { 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")){ + 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"));