mojira.dev
MC-94907

Wrong NBT TAG type for damage value of item

Relates to:

Introduction

This is based on Mincraft 1.8 (decompiled with MCP) and might not be the case anymore.

The bug

Internally the Damage value of an item (ItemStack) is an int, however in the NBT representation it is a short.

Comments 2

Why is it a problem when the internal data reprensentation is bigger than the interface data type ?
When by whatever means the internal data never exceeds the validity range of the interface data type, then the serialization / deserialization process is save.

Sorry, then close this report

marcono1234

(Unassigned)

Unconfirmed

nbt

Minecraft 1.8.9

Retrieved