General Code Maintenance

-might fix https://github.com/GTNewHorizons/NewHorizons/issues/5048
-optimised imports
-removed some unused null checks
-qualified names, generally made the code more readable

Signed-off-by: bartimaeusnek <[email protected]>
This commit is contained in:
bartimaeusnek committed 2019-10-15 14:32:38 +02:00
1 parent 70064913d8
commit bab9ad582f
246 files changed
+4892 -5114

No files matched your search

@@ -95,9 +95,7 @@ public class ItemBlockRemoteJar extends ItemBlock {
}
return true;
} else {
if(player.isSneaking()) {
return true;
}
return player.isSneaking();
}
}
return false;
@@ -135,7 +133,7 @@ public class ItemBlockRemoteJar extends ItemBlock {
if (stack.hasTagCompound()) {
UUID networkId = NBTHelper.getUUID(stack.getTagCompound(), "networkId");
if(networkId != null) {
list.add(String.format(StatCollector.translateToLocal("gadomancy.lore.remotejar"), generateName(networkId)));
list.add(String.format(StatCollector.translateToLocal("gadomancy.lore.remotejar"), ItemBlockRemoteJar.generateName(networkId)));
}
}
ConfigItems.itemJarFilled.addInformation(stack, player, list, advancedItemTooltips);
@@ -153,7 +151,7 @@ public class ItemBlockRemoteJar extends ItemBlock {
String[] split = values.get(entryIndex).split(" ");
String part = split[random.nextInt(split.length)];
if(!isValidName(part)) {
if(!ItemBlockRemoteJar.isValidName(part)) {
i--;
continue;
}