Fix: Structure blocks/voids in recipes (#4999)

* Fix: Structure blocks/voids in recipes

* add gh issue link
This commit is contained in:
chris 2024-08-27 18:40:22 +02:00 committed by GitHub
parent 46b2c03215
commit 8356b63f5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,6 +171,11 @@ public class ItemRegistryPopulator {
List<ItemData> creativeItems = new ArrayList<>(); List<ItemData> creativeItems = new ArrayList<>();
Set<String> noBlockDefinitions = new ObjectOpenHashSet<>(); Set<String> noBlockDefinitions = new ObjectOpenHashSet<>();
// Fix: Usage of structure blocks/voids in recipes
// https://github.com/GeyserMC/Geyser/issues/2890
noBlockDefinitions.add("minecraft:structure_block");
noBlockDefinitions.add("minecraft:structure_void");
AtomicInteger creativeNetId = new AtomicInteger(); AtomicInteger creativeNetId = new AtomicInteger();
CreativeItemRegistryPopulator.populate(palette, definitions, itemBuilder -> { CreativeItemRegistryPopulator.populate(palette, definitions, itemBuilder -> {
ItemData item = itemBuilder.netId(creativeNetId.incrementAndGet()).build(); ItemData item = itemBuilder.netId(creativeNetId.incrementAndGet()).build();