Skip to content

Commit

Permalink
better loggg
Browse files Browse the repository at this point in the history
  • Loading branch information
quat1024 committed Aug 21, 2018
1 parent 756f86e commit 1905283
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/main/java/quaternary/simpletrophies/SimpleTrophies.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package quaternary.simpletrophies;

import net.minecraftforge.fml.common.Mod;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

@Mod(modid = SimpleTrophies.MODID, name = SimpleTrophies.NAME, version = SimpleTrophies.VERSION)
public class SimpleTrophies {
public static final String MODID = "simple_trophies";
public static final String NAME = "Simple Trophies";
public static final String VERSION = "GRADLE:VERSION";

public static final Logger LOG = LogManager.getLogger(NAME);
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void renderByItem(ItemStack stack) {
try {
Minecraft.getMinecraft().getRenderItem().renderItem(displayedStack, ItemCameraTransforms.TransformType.GROUND);
} catch(Exception oof) {
oof.printStackTrace();
SimpleTrophies.LOG.error("Problem rendering item on a trophy TEISR", oof);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import org.lwjgl.opengl.GL11;
import quaternary.simpletrophies.SimpleTrophies;
import quaternary.simpletrophies.client.ClientGameEvents;
import quaternary.simpletrophies.common.tile.TileSimpleTrophy;

Expand All @@ -34,7 +35,7 @@ public void render(TileSimpleTrophy te, double x, double y, double z, float part
try {
Minecraft.getMinecraft().getRenderItem().renderItem(displayedStack, ItemCameraTransforms.TransformType.GROUND);
} catch(Exception oof) {
oof.printStackTrace();
SimpleTrophies.LOG.error("Problem rendering item on a trophy TESR", oof);
}

GlStateManager.enableBlend(); //fix a stateleak in renderitem >.>
Expand Down

0 comments on commit 1905283

Please sign in to comment.