Well im using hyperion, and im working on a code to spawn and delete objects, and this is what I have found.
I start up the server, do a test command to spawn an object and its creates and object, I then move a square andddddd it wont create objects any more... So I go into a teleporter and try to create and object and magically it works! It will then promptly stop working again... I then get teleported to another location and it works! Forever! I can spawn as many objects as I could ever feel the need to spawn. I then get teleported again though and it stops working....
WTF!!!!! I know its my sendCoords packet because the same thing happens with global items. Here it is if anyone can find somethign wrong.
Code:
public ActionSender sendNewObject(Location loc, int id, int face, int type) {
PacketBuilder globalDrop = new PacketBuilder(85);
globalDrop.putByteC((loc.getY() - 8 * player.getLocation().getRegionY()));
globalDrop.putByteC((loc.getX() - 8 * player.getLocation().getRegionX()));
player.write(globalDrop.toPacket());
player.write(new PacketBuilder(151).putByteA(0).putLEShort(id)
.putByteS((byte) ((type << 2) + (face & 3))).toPacket());
return this;
}
Any help would be nice...