mirror of
https://github.com/GTNewHorizons/BloodArsenal.git
synced 2026-11-27 15:33:06 +00:00
1.1-11 Update
This commit is contained in:
1 parent
29336b1862
commit
0b34e0bcf7
3 files changed
+12
-6
No files matched your search
@@ -41,7 +41,7 @@ import java.util.Calendar;
|
||||
public class BloodArsenal
|
||||
{
|
||||
public final static String MODID = "BloodArsenal";
|
||||
public final static String VERSION = "1.1-10";
|
||||
public final static String VERSION = "1.1-11";
|
||||
|
||||
@SidedProxy(clientSide = "com.arc.bloodarsenal.ClientProxy", serverSide = "com.arc.bloodarsenal.CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@@ -70,13 +70,19 @@ public class TransparentOrb extends EnergyBattery
|
||||
{
|
||||
int i = stack.getItemDamage() + 1;
|
||||
|
||||
if (i == stack.getItemDamage() || i == stack.getItemDamage() + 2)
|
||||
if (i != stack.getItemDamage() && i < icons.length)
|
||||
{
|
||||
i = stack.getItemDamage() + 1;
|
||||
return icons[i - 1];
|
||||
}
|
||||
|
||||
return icons[stack.getItemDamage()];
|
||||
else if (i <= icons.length)
|
||||
{
|
||||
return icons[icons.length - 1];
|
||||
}
|
||||
else
|
||||
{
|
||||
return itemIcon;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -86,7 +92,7 @@ public class TransparentOrb extends EnergyBattery
|
||||
itemIcon = iconRegister.registerIcon("BloodArsenal:orb/orb_0");
|
||||
icons[0] = iconRegister.registerIcon("BloodArsenal:orb/orb_0");
|
||||
|
||||
for (int i = 0; i < 23; i++)
|
||||
for (int i = 0; i < icons.length; i++)
|
||||
{
|
||||
icons[i] = iconRegister.registerIcon("BloodArsenal:orb/orb_" + i);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user