Use unpowered note block

This commit is contained in:
creeper123123321 2018-08-11 06:54:38 -03:00
parent c709b019e1
commit e39876ae67
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ public class WorldPackets {
if (blockId == 73) { // Note block
PacketWrapper blockChange = wrapper.create(0x0B); // block change
blockChange.write(Type.POSITION, new Position(pos.getX(), pos.getY(), pos.getZ())); // Clone because position is mutable
blockChange.write(Type.VAR_INT, 248 + (action * 24 * 2) + (param * 2));
blockChange.write(Type.VAR_INT, 249 + (action * 24 * 2) + (param * 2));
blockChange.send(Protocol1_13To1_12_2.class, true, true);
}
wrapper.set(Type.VAR_INT, 0, blockId);

View File

@ -154,7 +154,7 @@
"384": "minecraft:sandstone",
"385": "minecraft:chiseled_sandstone",
"386": "minecraft:cut_sandstone",
"400": "minecraft:note_block[instrument=harp,note=0,powered=true]",
"400": "minecraft:note_block[instrument=harp,note=0,powered=false]",
"416": "minecraft:red_bed[facing=south,occupied=false,part=foot]",
"417": "minecraft:red_bed[facing=west,occupied=false,part=foot]",
"418": "minecraft:red_bed[facing=north,occupied=false,part=foot]",