fix last commit

This commit is contained in:
UnknownShadow200 2017-02-06 17:27:39 +11:00
parent 7296420e80
commit 7241f954e0

View File

@ -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;
}
}