Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-25 15:50:14 +01:00
Allow recipes to default count as 1
Dieser Commit ist enthalten in:
Ursprung
52a93ecc18
Commit
3528b1d692
@ -136,7 +136,7 @@ public final class RecipeRegistryLoader implements RegistryLoader<String, Map<Re
|
||||
*/
|
||||
private static ItemStack toItemStack(NbtMap nbt, MinecraftCodecHelper helper) {
|
||||
int id = nbt.getInt("id");
|
||||
int count = nbt.getInt("count");
|
||||
int count = nbt.getInt("count", 1);
|
||||
String componentsRaw = nbt.getString("components", null);
|
||||
if (componentsRaw != null) {
|
||||
byte[] bytes = Base64.getDecoder().decode(componentsRaw);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren