mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Add custom items to registry
This commit is contained in:
parent
d8acb6a82c
commit
6da8d5e7be
1 changed files with 1 additions and 0 deletions
|
@ -496,6 +496,7 @@ public class ItemRegistryPopulator {
|
||||||
mappings.add(ItemMapping.AIR);
|
mappings.add(ItemMapping.AIR);
|
||||||
}
|
}
|
||||||
mappings.set(javaItem.javaId(), mapping);
|
mappings.set(javaItem.javaId(), mapping);
|
||||||
|
registry.put(customItemId, mapping.getBedrockDefinition());
|
||||||
|
|
||||||
if (customItem.creativeGroup() != null || customItem.creativeCategory().isPresent()) {
|
if (customItem.creativeGroup() != null || customItem.creativeCategory().isPresent()) {
|
||||||
creativeItems.add(ItemData.builder()
|
creativeItems.add(ItemData.builder()
|
||||||
|
|
Loading…
Reference in a new issue