mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Return null if no definition found
This commit is contained in:
parent
e295f910c4
commit
7f38496d61
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ public class BlockMappings implements DefinitionRegistry<GeyserBedrockBlock> {
|
|||
@Override
|
||||
public GeyserBedrockBlock getDefinition(int bedrockId) {
|
||||
if (bedrockId < 0 || bedrockId >= this.bedrockRuntimeMap.length) {
|
||||
return bedrockAir;
|
||||
return null;
|
||||
}
|
||||
return bedrockRuntimeMap[bedrockId];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue