#594 Changing equipped item causes FPS drop

This commit is contained in:
CrazyPants committed 2014-04-13 20:25:38 +08:00
1 parent d152575d8e
commit 9cd48a009c
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -6,6 +6,7 @@
- #591 Work around to avoid non reproducible crash.
- #592 Power monitor reports larger capacitor bank size
- #593 Crash when jumping on travel anchor while looking at an 'Ender IO' block
- #594 Changing equipped item causes FPS drop
1.0
- #447 Capacitor Bank and Quite Clear Glass causing rendering issues.
@@ -2,6 +2,7 @@ package crazypants.enderio.conduit;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;
import crazypants.enderio.EnderIO;
public enum ConduitDisplayMode {
ALL,
@@ -28,7 +29,7 @@ public enum ConduitDisplayMode {
}
public static ConduitDisplayMode getDisplayMode(ItemStack equipped) {
if(equipped == null) {
if(equipped == null || equipped.getItem() != EnderIO.itemYetaWench) {
return ALL;
}
int index = equipped.getItemDamage();