Run code formatter
🦀 Way is gone 🦀
This commit is contained in:
parent
7c1565a68c
commit
53b6030ba9
77 changed files with 1289 additions and 2232 deletions
|
@ -98,7 +98,8 @@ public class ElementRegistry {
|
|||
return;
|
||||
|
||||
try (FileReader reader = new FileReader(CONFIG)) {
|
||||
Map<String, Vector2f> toLoad = GSON.fromJson(reader, new TypeToken<Map<String, Vector2f>>() {}.getType());
|
||||
Map<String, Vector2f> toLoad = GSON.fromJson(reader, new TypeToken<Map<String, Vector2f>>() {
|
||||
}.getType());
|
||||
for (Map.Entry<String, Vector2f> entry : toLoad.entrySet()) {
|
||||
ElementInfo info = ELEMENT_INFO.get(new ResourceLocation(entry.getKey()));
|
||||
if (info != null)
|
||||
|
|
|
@ -34,7 +34,9 @@ public class GuiEditHUD extends GuiScreen {
|
|||
public void initGui() {
|
||||
super.initGui();
|
||||
|
||||
addButton(new GuiButtonExt(0, width / 2 - 155, height - 30, 70, 20, I18n.format("gui.bloodmagic.toggle")){{enabled = false;}});
|
||||
addButton(new GuiButtonExt(0, width / 2 - 155, height - 30, 70, 20, I18n.format("gui.bloodmagic.toggle")) {{
|
||||
enabled = false;
|
||||
}});
|
||||
addButton(new GuiButtonExt(1, width / 2 - 75, height - 30, 70, 20, I18n.format("gui.bloodmagic.default")));
|
||||
addButton(new GuiButtonExt(2, width / 2 + 5, height - 30, 70, 20, I18n.format("gui.bloodmagic.save")));
|
||||
addButton(new GuiButtonExt(3, width / 2 + 90, height - 30, 70, 20, I18n.format("gui.bloodmagic.cancel")));
|
||||
|
|
|
@ -55,7 +55,7 @@ public abstract class ElementDivinedInformation<T extends TileEntity> extends El
|
|||
if (sigilStack.getItem() instanceof ItemSigilHolding) {
|
||||
List<ItemStack> internalInv = ItemSigilHolding.getInternalInventory(sigilStack);
|
||||
int currentSlot = ItemSigilHolding.getCurrentItemOrdinal(sigilStack);
|
||||
if(internalInv != null && !internalInv.get(currentSlot).isEmpty()) {
|
||||
if (internalInv != null && !internalInv.get(currentSlot).isEmpty()) {
|
||||
return (internalInv.get(currentSlot).getItem() == RegistrarBloodMagicItems.SIGIL_SEER && !simple) || (internalInv.get(currentSlot).getItem() == RegistrarBloodMagicItems.SIGIL_DIVINATION && simple);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue