Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Fix creativeNetId overlap (#3756)
Dieser Commit ist enthalten in:
Ursprung
9b264e6374
Commit
fbac0c10db
@ -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());
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren