Closed midn1 closed 9 years ago
You don't need to use ProtocolLib here, just use player.sendBlockChange().
You didn't mention which line throws a NullPointException, so I can't be certain what's causing this. But it is likely to occur if you pass an invalid block ID in args[4], as Material.getMaterial(int) return NULL if it gets an unknown block ID.
That code gives a null pointer exception at the initializing of changeblock. That my entire problem. (Im trying to send a fake block packet to a client)