mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix creativeNetId overlap (#3756)
This commit is contained in:
parent
9b264e6374
commit
fbac0c10db
1 changed files with 2 additions and 2 deletions
|
@ -468,7 +468,7 @@ public class ItemRegistryPopulator {
|
||||||
.build());
|
.build());
|
||||||
|
|
||||||
creativeItems.add(ItemData.builder()
|
creativeItems.add(ItemData.builder()
|
||||||
.netId(creativeNetId.getAndIncrement())
|
.netId(creativeNetId.incrementAndGet())
|
||||||
.definition(definition)
|
.definition(definition)
|
||||||
.count(1)
|
.count(1)
|
||||||
.build());
|
.build());
|
||||||
|
@ -501,7 +501,7 @@ public class ItemRegistryPopulator {
|
||||||
if (customItem.creativeGroup() != null || customItem.creativeCategory().isPresent()) {
|
if (customItem.creativeGroup() != null || customItem.creativeCategory().isPresent()) {
|
||||||
creativeItems.add(ItemData.builder()
|
creativeItems.add(ItemData.builder()
|
||||||
.definition(registration.mapping().getBedrockDefinition())
|
.definition(registration.mapping().getBedrockDefinition())
|
||||||
.netId(creativeNetId.getAndIncrement())
|
.netId(creativeNetId.incrementAndGet())
|
||||||
.count(1)
|
.count(1)
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue