Fixed beam effect not always showing up
This commit is contained in:
parent
ce629080f3
commit
917420e797
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ public class MessageBeamEffect implements IMessage, IMessageHandler<MessageBeamE
|
|||
red = buffer.readFloat();
|
||||
green = buffer.readFloat();
|
||||
blue = buffer.readFloat();
|
||||
age = buffer.readByte();
|
||||
age = buffer.readShort();
|
||||
energy = buffer.readInt();
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ public class MessageBeamEffect implements IMessage, IMessageHandler<MessageBeamE
|
|||
buffer.writeFloat(red);
|
||||
buffer.writeFloat(green);
|
||||
buffer.writeFloat(blue);
|
||||
buffer.writeByte(age);
|
||||
buffer.writeShort(Math.min(32767, age));
|
||||
buffer.writeInt(energy);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue