Fixed unintended behavior in expanded API

This commit is contained in:
jss2a98aj committed 2023-01-29 20:32:40 -05:00
1 parent 7221cac4c3
commit 7f9bb75022
2 files changed
+4 -4

No files matched your search

@@ -16,7 +16,7 @@ public class BaubleExpandedSlots {
//The type used in place of null.
public static final String unknownType = "unknown";
//Ppre-registered types.
//Pre-registered types.
public static final String ringType = "ring";
public static final String amuletType = "amulet";
public static final String beltType = "belt";
@@ -311,11 +311,11 @@ public class BaubleExpandedSlots {
if(Loader.instance().getLoaderState() == LoaderState.INITIALIZATION) {
newSlotsRemaining = 0;
for(int slot = 0; slot < slotLimit; slot++) {
if(slot < overrideSlots.length && isTypeRegistered(overrideSlots[slot])) {
if(slot < overrideSlots.length && isTypeRegistered(overrideSlots[slot]) && !overrideSlots[slot].equals(unknownType)) {
assignedSlots[slot] = overrideSlots[slot];
newSlotsRemaining++;
} else {
assignedSlots[slot] = unknownType;
newSlotsRemaining++;
}
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
@API(owner = "Baubles", apiVersion = "2.0.1", provides = "Baubles|API")
@API(owner = "Baubles", apiVersion = "2.0.2", provides = "Baubles|API")
package baubles.api;
import cpw.mods.fml.common.API;