mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Remove unnecessary version check for minecart furnace icon information
All supported protocols are now 1.17.30 or later.
This commit is contained in:
parent
9ba1efaa30
commit
af8c26a4a5
1 changed files with 1 additions and 3 deletions
|
@ -465,9 +465,7 @@ public class ItemRegistryPopulator {
|
||||||
|
|
||||||
NbtMapBuilder componentBuilder = NbtMap.builder();
|
NbtMapBuilder componentBuilder = NbtMap.builder();
|
||||||
// Conveniently, as of 1.16.200, the furnace minecart has a texture AND translation string already.
|
// Conveniently, as of 1.16.200, the furnace minecart has a texture AND translation string already.
|
||||||
// 1.17.30 moves the icon to the item properties section
|
itemProperties.putCompound("minecraft:icon", NbtMap.builder()
|
||||||
(palette.getValue().protocolVersion() >= Bedrock_v465.V465_CODEC.getProtocolVersion() ?
|
|
||||||
itemProperties : componentBuilder).putCompound("minecraft:icon", NbtMap.builder()
|
|
||||||
.putString("texture", "minecart_furnace")
|
.putString("texture", "minecart_furnace")
|
||||||
.putString("frame", "0.000000")
|
.putString("frame", "0.000000")
|
||||||
.putInt("frame_version", 1)
|
.putInt("frame_version", 1)
|
||||||
|
|
Loading…
Reference in a new issue