mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-26 10:19:12 +00:00
Fix creativeNetId overlap (#3756)
This commit is contained in:
@@ -468,7 +468,7 @@ public class ItemRegistryPopulator {
|
||||
.build());
|
||||
|
||||
creativeItems.add(ItemData.builder()
|
||||
.netId(creativeNetId.getAndIncrement())
|
||||
.netId(creativeNetId.incrementAndGet())
|
||||
.definition(definition)
|
||||
.count(1)
|
||||
.build());
|
||||
@@ -501,7 +501,7 @@ public class ItemRegistryPopulator {
|
||||
if (customItem.creativeGroup() != null || customItem.creativeCategory().isPresent()) {
|
||||
creativeItems.add(ItemData.builder()
|
||||
.definition(registration.mapping().getBedrockDefinition())
|
||||
.netId(creativeNetId.getAndIncrement())
|
||||
.netId(creativeNetId.incrementAndGet())
|
||||
.count(1)
|
||||
.build());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user