Skip to content

Commit d2cd55a

Browse files
misc cleanup
1 parent 293428f commit d2cd55a

File tree

5 files changed

+17
-18
lines changed

5 files changed

+17
-18
lines changed

src/main/java/com/recursive_pineapple/matter_manipulator/CommonProxy.java

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.recursive_pineapple.matter_manipulator;
22

3-
import com.recursive_pineapple.matter_manipulator.common.building.BlockSpec;
43
import com.recursive_pineapple.matter_manipulator.common.compat.BlockPropertyRegistry;
54
import com.recursive_pineapple.matter_manipulator.common.entities.EntityItemLarge;
65
import com.recursive_pineapple.matter_manipulator.common.items.MMItems;

src/main/java/com/recursive_pineapple/matter_manipulator/common/building/ArchitectureCraftAnalysisResult.java

+8-16
Original file line numberDiff line numberDiff line change
@@ -174,25 +174,17 @@ public int hashCode() {
174174

175175
@Override
176176
public boolean equals(Object obj) {
177-
if (this == obj)
178-
return true;
179-
if (obj == null)
180-
return false;
181-
if (getClass() != obj.getClass())
182-
return false;
177+
if (this == obj) return true;
178+
if (obj == null) return false;
179+
if (getClass() != obj.getClass()) return false;
183180
ArchitectureCraftAnalysisResult other = (ArchitectureCraftAnalysisResult) obj;
184-
if (shape != other.shape)
185-
return false;
181+
if (shape != other.shape) return false;
186182
if (material == null) {
187-
if (other.material != null)
188-
return false;
189-
} else if (!material.equals(other.material))
190-
return false;
183+
if (other.material != null) return false;
184+
} else if (!material.equals(other.material)) return false;
191185
if (cladding == null) {
192-
if (other.cladding != null)
193-
return false;
194-
} else if (!cladding.equals(other.cladding))
195-
return false;
186+
if (other.cladding != null) return false;
187+
} else if (!cladding.equals(other.cladding)) return false;
196188
return true;
197189
}
198190

src/main/java/com/recursive_pineapple/matter_manipulator/common/items/manipulator/MMState.java

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ private static void migrateJson(JsonObject obj) {
122122
config.remove("faces");
123123
config.remove("volumes");
124124
config.remove("cables");
125+
config.remove("replaceWhitelist");
126+
config.remove("replaceWith");
125127
}
126128
version = 1;
127129
}

src/main/java/com/recursive_pineapple/matter_manipulator/common/persist/UIDJsonAdapter.java

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public UniqueIdentifier deserialize(JsonElement json, Type typeOfT, JsonDeserial
6868
}
6969

7070
public static enum CommonName {
71+
AIR(Mods.Minecraft, "air"),
7172
GT_BLOCKMACHINES(Mods.GregTech, "gt.blockmachines"),
7273
AE_ITEMPART(Mods.AppliedEnergistics2, "item.ItemMultiPart"),
7374
ARCH_SHAPE(Mods.ArchitectureCraft, "shape"),

src/main/java/com/recursive_pineapple/matter_manipulator/common/utils/Mods.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ public enum Mods {
2323
IndustrialCraft2(Names.INDUSTRIAL_CRAFT2),
2424
LogisticsPipes(Names.LOGISTICS_PIPES),
2525
MatterManipulator(Names.MATTER_MANIPULATOR),
26-
Minecraft(Names.MINECRAFT),
26+
Minecraft(Names.MINECRAFT) {
27+
@Override
28+
public boolean isModLoaded() {
29+
return true;
30+
}
31+
},
2732
NewHorizonsCoreMod(Names.NEW_HORIZONS_CORE_MOD),
2833
NotEnoughItems(Names.NOT_ENOUGH_ITEMS),
2934
StorageDrawers(Names.STORAGE_DRAWERS),

0 commit comments

Comments
 (0)