ProtocolLib

3M Downloads

You cannot register objects without a watcher object!

abhithedev200 opened this issue ยท 1 comments

commented

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!
commented

You need to use a WrappedDataWatcherObject in 1.9+