mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
try to avoid creating an nbt tag where its only going to be read
This commit is contained in:
1 parent
4f7db32e6f
commit
da0497b8f1
4 files changed
+24
-4
No files matched your search
@@ -15,6 +15,8 @@ import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.util.Constants.NBT;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public enum Upgrade
|
||||
{
|
||||
SPEED("speed", 8, EnumColor.RED),
|
||||
@@ -127,7 +129,7 @@ public enum Upgrade
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static Map<Upgrade, Integer> buildMap(NBTTagCompound nbtTags)
|
||||
public static Map<Upgrade, Integer> buildMap(@Nullable NBTTagCompound nbtTags)
|
||||
{
|
||||
Map<Upgrade, Integer> upgrades = new HashMap<>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user