mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-28 15:36:17 +00:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user