mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-25 14:24:42 +00:00
Fixed unintended behavior in expanded API
This commit is contained in:
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,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;
|
||||
|
||||
Reference in new issue
Block a user