Refactored Player and NPC packets

This commit is contained in:
thedaneeffect committed 2023-01-05 13:31:06 -05:00
1 parent 22587cdb5a
commit 65b84fdeaa
11 files changed
+2196 -2044

No files matched your search

+4
View File
@@ -301,6 +301,10 @@ public class Buffer extends DoublyLinkedList.Node {
position += len;
}
public void read(byte[] dst) {
read(dst,0,dst.length);
}
public void readReversed(byte[] dst, int off, int len) {
for (int i = (off + len) - 1; i >= off; i--) {
dst[i] = data[position++];