You cannot register objects without a watcher object!
abhithedev200 opened this issue ยท 1 comments
my code
WrappedDataWatcher watcher = new WrappedDataWatcher();
metadata.setEntityID(npc.getId());
watcher.setObject(18,2);
metadata.setMetadata(watcher.getWatchableObjects());**```
why my code throws this You cannot register objects without a watcher object!
You need to use a WrappedDataWatcherObject in 1.9+