mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
fix last commit
This commit is contained in:
parent
7296420e80
commit
7241f954e0
@ -173,11 +173,12 @@ namespace MCGalaxy {
|
|||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static byte[] EntityProperty(EntityProp prop, int value) {
|
public static byte[] EntityProperty(byte id, EntityProp prop, int value) {
|
||||||
byte[] buffer = new byte[6];
|
byte[] buffer = new byte[7];
|
||||||
buffer[0] = Opcode.CpeSetEntityProperty;
|
buffer[0] = Opcode.CpeSetEntityProperty;
|
||||||
buffer[1] = (byte)prop;
|
buffer[1] = id;
|
||||||
NetUtils.WriteI32(value, buffer, 2);
|
buffer[2] = (byte)prop;
|
||||||
|
NetUtils.WriteI32(value, buffer, 3);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user