mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-13 12:43:37 +08:00
Fix whitespace [skip actions]
This commit is contained in:
+15
-15
@@ -8,19 +8,19 @@ import emu.grasscutter.net.proto.PlayerPropChangeReasonNotifyOuterClass.PlayerPr
|
||||
import emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason;
|
||||
|
||||
public class PacketPlayerPropChangeReasonNotify extends BasePacket {
|
||||
|
||||
public PacketPlayerPropChangeReasonNotify(Player player, PlayerProperty prop, int oldValue, int newValue, PropChangeReason changeReason) {
|
||||
super(PacketOpcodes.PlayerPropChangeReasonNotify);
|
||||
|
||||
this.buildHeader(0);
|
||||
|
||||
PlayerPropChangeReasonNotify proto = PlayerPropChangeReasonNotify.newBuilder()
|
||||
.setPropType(prop.getId())
|
||||
.setReason(changeReason)
|
||||
.setOldValue(oldValue)
|
||||
.setCurValue(newValue)
|
||||
.build();
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
|
||||
public PacketPlayerPropChangeReasonNotify(Player player, PlayerProperty prop, int oldValue, int newValue, PropChangeReason changeReason) {
|
||||
super(PacketOpcodes.PlayerPropChangeReasonNotify);
|
||||
|
||||
this.buildHeader(0);
|
||||
|
||||
PlayerPropChangeReasonNotify proto = PlayerPropChangeReasonNotify.newBuilder()
|
||||
.setPropType(prop.getId())
|
||||
.setReason(changeReason)
|
||||
.setOldValue(oldValue)
|
||||
.setCurValue(newValue)
|
||||
.build();
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user