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