mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 12:51:09 -05:00
Fix last commit's code style
This commit is contained in:
parent
61dbf354ff
commit
03f1d7d92d
1 changed files with 7 additions and 7 deletions
|
@ -70,22 +70,22 @@ public class ServerBlockValuePacket implements Packet {
|
|||
int type = in.readUnsignedByte();
|
||||
int value = in.readUnsignedByte();
|
||||
this.blockId = in.readVarInt() & 0xFFF;
|
||||
|
||||
if(this.blockId == NOTE_BLOCK) {
|
||||
|
||||
if(this.blockId == NOTE_BLOCK) {
|
||||
this.type = MagicValues.key(NoteBlockValueType.class, type);
|
||||
this.value = new NoteBlockValue(value);
|
||||
this.value = new NoteBlockValue(value);
|
||||
} else if(this.blockId == STICKY_PISTON || this.blockId == PISTON) {
|
||||
this.type = MagicValues.key(PistonValueType.class, type);
|
||||
this.value = MagicValues.key(PistonValue.class, value);
|
||||
this.value = MagicValues.key(PistonValue.class, value);
|
||||
} else if(this.blockId == MOB_SPAWNER) {
|
||||
this.type = MagicValues.key(MobSpawnerValueType.class, type);
|
||||
this.value = new MobSpawnerValue();
|
||||
this.value = new MobSpawnerValue();
|
||||
} else if(this.blockId == CHEST || this.blockId == ENDER_CHEST || this.blockId == TRAPPED_CHEST) {
|
||||
this.type = MagicValues.key(ChestValueType.class, type);
|
||||
this.value = new ChestValue(value);
|
||||
this.value = new ChestValue(value);
|
||||
} else {
|
||||
this.type = MagicValues.key(GenericBlockValueType.class, type);
|
||||
this.value = new GenericBlockValue(value);
|
||||
this.value = new GenericBlockValue(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue