Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-16 04:50:07 +01:00
Fix: Structure blocks/voids in recipes (#4999)
* Fix: Structure blocks/voids in recipes * add gh issue link
Dieser Commit ist enthalten in:
Ursprung
46b2c03215
Commit
8356b63f5d
@ -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();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren