Skip to content

Commit 97a2e99

Browse files
More small fixes
1 parent 215c309 commit 97a2e99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/geysermc/geyser/registry/populator/ItemRegistryPopulator.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -521,15 +521,15 @@ public static void populate() {
521521
}
522522

523523
try {
524-
GeyserCustomMappingData customMapping = CustomItemRegistryPopulator.registerCustomItem(javaItem, mappingItem, customItem, customProtocolId);
524+
GeyserCustomMappingData customMapping = CustomItemRegistryPopulator.registerCustomItem(javaItem, mappingItem, customItem, customProtocolId, palette.protocolVersion);
525525

526526
if (customItem.bedrockOptions().creativeCategory() != CreativeCategory.NONE) {
527527
CreativeItemData creativeItemData = new CreativeItemData(ItemData.builder()
528528
.netId(creativeNetId.incrementAndGet())
529529
.definition(customMapping.itemDefinition())
530530
.blockDefinition(null)
531531
.count(1)
532-
.build(), creativeNetId.get(), customItem.creativeCategory().getAsInt());
532+
.build(), creativeNetId.get(), customItem.bedrockOptions().creativeCategory().id());
533533
creativeItems.add(creativeItemData);
534534
}
535535

0 commit comments

Comments
 (0)