mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Rename map and use correct ID when entering.
This commit is contained in:
parent
6599aefc43
commit
2e46ecf28f
1 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ public class Toolbox {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new AssertionError("Unable to load Java block mappings", e);
|
throw new AssertionError("Unable to load Java block mappings", e);
|
||||||
}
|
}
|
||||||
TObjectIntMap<CompoundTag> stateRuntimeMap = new TObjectIntHashMap<>(512, 0.5f, -1);
|
TObjectIntMap<CompoundTag> addedStatesMap = new TObjectIntHashMap<>(512, 0.5f, -1);
|
||||||
List<CompoundTag> paletteList = new ArrayList<>();
|
List<CompoundTag> paletteList = new ArrayList<>();
|
||||||
|
|
||||||
int javaRuntimeId = -1;
|
int javaRuntimeId = -1;
|
||||||
|
@ -76,10 +76,10 @@ public class Toolbox {
|
||||||
|
|
||||||
CompoundTag runtimeTag = blockStateMap.remove(blockTag);
|
CompoundTag runtimeTag = blockStateMap.remove(blockTag);
|
||||||
if (runtimeTag != null) {
|
if (runtimeTag != null) {
|
||||||
stateRuntimeMap.put(blockTag, javaRuntimeId);
|
addedStatesMap.put(blockTag, bedrockRuntimeId);
|
||||||
paletteList.add(runtimeTag);
|
paletteList.add(runtimeTag);
|
||||||
} else {
|
} else {
|
||||||
int duplicateRuntimeId = stateRuntimeMap.get(blockTag);
|
int duplicateRuntimeId = addedStatesMap.get(blockTag);
|
||||||
if (duplicateRuntimeId == -1) {
|
if (duplicateRuntimeId == -1) {
|
||||||
GeyserLogger.DEFAULT.debug("Mapping " + javaId + " was not found for bedrock edition!");
|
GeyserLogger.DEFAULT.debug("Mapping " + javaId + " was not found for bedrock edition!");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue