mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-23 12:25:24 +01:00
Fix typo
This commit is contained in:
parent
d66eb0c56b
commit
24d77278f6
@ -34,7 +34,7 @@ public class PistonHandler implements BackwardsBlockEntityProvider.BackwardsBloc
|
||||
for (Map.Entry<String, Integer> entry : keyToId.entrySet()) {
|
||||
if (!entry.getKey().contains("piston")) continue;
|
||||
|
||||
addEnries(entry.getKey(), entry.getValue());
|
||||
addEntries(entry.getKey(), entry.getValue());
|
||||
}
|
||||
} else {
|
||||
JsonObject mappings = MappingData.loadData("mapping-1.13.json").getAsJsonObject("blocks");
|
||||
@ -42,13 +42,13 @@ public class PistonHandler implements BackwardsBlockEntityProvider.BackwardsBloc
|
||||
String key = blockState.getValue().getAsString();
|
||||
if (!key.contains("piston")) continue;
|
||||
|
||||
addEnries(key, Integer.parseInt(blockState.getKey()));
|
||||
addEntries(key, Integer.parseInt(blockState.getKey()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// There doesn't seem to be a nicer way around it :(
|
||||
private void addEnries(String data, int id) {
|
||||
private void addEntries(String data, int id) {
|
||||
id = BackwardsMappings.blockMappings.getNewBlock(id);
|
||||
pistonIds.put(data, id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user