Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (e.getAction() == Action.RIGHT_CLICK_BLOCK &&
- (e.getClickedBlock().getType().equals(Material.COMMAND) ||
- e.getClickedBlock().getType().equals(Material.COMMAND_CHAIN) ||
- e.getClickedBlock().getType().equals(Material.COMMAND_REPEATING)) &&
- p.hasPermission("commandblock.access")) {
- WrapperPlayServerTileEntityData packet = new WrapperPlayServerTileEntityData();
- packet.setAction(2); // set command block info
- packet.setLocation(new BlockPosition(e.getClickedBlock().getLocation().toVector()));
- NbtFactory.asCompound(NbtFactory.readBlockState(e.getClickedBlock())).deepClone(); // <-- It fails here, at readBlockState
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement