mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 12:32:13 +00:00
Eliminated the deprecated "getSpeedMultiplier()" and "getEnergyMultiplier()" methods
This commit is contained in:
1 parent
523ec21467
commit
52efdac614
14 files changed
+42
-390
No files matched your search
@@ -45,7 +45,7 @@ public enum Upgrade
|
||||
public EnumColor getColor()
|
||||
{
|
||||
return color;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean canMultiply()
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public enum Upgrade
|
||||
{
|
||||
Map<Upgrade, Integer> upgrades = new HashMap<Upgrade, Integer>();
|
||||
|
||||
if(nbtTags.hasKey("upgrades"))
|
||||
if(nbtTags != null && nbtTags.hasKey("upgrades"))
|
||||
{
|
||||
NBTTagList list = nbtTags.getTagList("upgrades", NBT.TAG_COMPOUND);
|
||||
|
||||
|
||||
Reference in new issue
Block a user