private static void appendFaceLocationUpdate(Npc Npc, PacketBuilder updateBlock) { Location loc = Npc.getFaceLocation(); int x = loc.getX(); int y = loc.getY(); updateBlock.addShortA(x = 2 * x + 1); updateBlock.addUShort(y = 2 * y + 1); }