mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-01-03 17:52:15 +01:00
Fix: Structure blocks/voids in recipes (#4999)
* Fix: Structure blocks/voids in recipes * add gh issue link
This commit is contained in:
parent
46b2c03215
commit
8356b63f5d
1 changed files with 5 additions and 0 deletions
|
@ -171,6 +171,11 @@ public class ItemRegistryPopulator {
|
|||
List<ItemData> creativeItems = new ArrayList<>();
|
||||
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();
|
||||
CreativeItemRegistryPopulator.populate(palette, definitions, itemBuilder -> {
|
||||
ItemData item = itemBuilder.netId(creativeNetId.incrementAndGet()).build();
|
||||
|
|
Loading…
Reference in a new issue