Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-16 04:50:07 +01:00
Fix #4870
Dieser Commit ist enthalten in:
Ursprung
669a76c628
Commit
406eae2a91
@ -42,10 +42,9 @@ public class CampfireBlockEntityTranslator extends BlockEntityTranslator {
|
||||
public void translateTag(GeyserSession session, NbtMapBuilder bedrockNbt, NbtMap javaNbt, BlockState blockState) {
|
||||
List<NbtMap> items = javaNbt.getList("Items", NbtType.COMPOUND);
|
||||
if (items != null) {
|
||||
int i = 1;
|
||||
for (NbtMap itemTag : items) {
|
||||
bedrockNbt.put("Item" + i, getItem(session, itemTag));
|
||||
i++;
|
||||
int slot = itemTag.getByte("Slot") + 1;
|
||||
bedrockNbt.put("Item" + slot, getItem(session, itemTag));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -55,8 +54,7 @@ public class CampfireBlockEntityTranslator extends BlockEntityTranslator {
|
||||
if (mapping == null) {
|
||||
mapping = ItemMapping.AIR;
|
||||
}
|
||||
NbtMapBuilder tagBuilder = BedrockItemBuilder.createItemNbt(mapping, tag.getByte("Count"), mapping.getBedrockData());
|
||||
tagBuilder.put("tag", NbtMap.builder().build()); // I don't think this is necessary... - Camo, 1.20.5/1.20.80
|
||||
NbtMapBuilder tagBuilder = BedrockItemBuilder.createItemNbt(mapping, tag.getInt("count"), mapping.getBedrockData());
|
||||
return tagBuilder.build();
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren