mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 13:10:13 +00:00
#594 Changing equipped item causes FPS drop
This commit is contained in:
1 parent
d152575d8e
commit
9cd48a009c
2 files changed
+3
-1
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user