OvercastNetwork / SportBukkit

CraftBukkit and Bukkit modifications that improve stability and add new features
100 stars 85 forks source link

Data watcher item casted to metadata key #216

Closed Pablete1234 closed 7 years ago

Pablete1234 commented 7 years ago

This is giving a class cast exception, MetadataKey extends DataWatcherObject but creating a DataWatcher.Item with a DataWatcherObject directly will cause a cast exception. A check to either cast or use id's (without translating the protocol) depending on the object type would be nice.

jedediah commented 7 years ago

I added the check