Remove unnecessary version check for minecart furnace icon information

All supported protocols are now 1.17.30 or later.
This commit is contained in:
Camotoy 2021-11-28 17:18:37 -05:00
parent 9ba1efaa30
commit af8c26a4a5
No known key found for this signature in database
GPG Key ID: 7EEFB66FE798081F
1 changed files with 1 additions and 3 deletions

View File

@ -465,9 +465,7 @@ public class ItemRegistryPopulator {
NbtMapBuilder componentBuilder = NbtMap.builder();
// 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
(palette.getValue().protocolVersion() >= Bedrock_v465.V465_CODEC.getProtocolVersion() ?
itemProperties : componentBuilder).putCompound("minecraft:icon", NbtMap.builder()
itemProperties.putCompound("minecraft:icon", NbtMap.builder()
.putString("texture", "minecart_furnace")
.putString("frame", "0.000000")
.putInt("frame_version", 1)