Return null if no definition found

This commit is contained in:
Camotoy 2022-12-23 20:24:53 -05:00
parent e295f910c4
commit 7f38496d61
No known key found for this signature in database
GPG Key ID: 7EEFB66FE798081F
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}