mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 03:55:28 +01:00
Fix recipe book glitch on <1.16.2 servers (#2715)
This commit is contained in:
parent
bd2bd1cf32
commit
ff5ad2385c
@ -74,13 +74,13 @@ public class Protocol1_16_2To1_16_1 extends AbstractProtocol<ClientboundPackets1
|
||||
boolean open = wrapper.read(Type.BOOLEAN);
|
||||
boolean filter = wrapper.read(Type.BOOLEAN);
|
||||
wrapper.write(Type.VAR_INT, 1); // Settings
|
||||
wrapper.write(Type.BOOLEAN, recipeType == 0); // Crafting
|
||||
wrapper.write(Type.BOOLEAN, recipeType == 0 && open); // Crafting
|
||||
wrapper.write(Type.BOOLEAN, filter);
|
||||
wrapper.write(Type.BOOLEAN, recipeType == 1); // Furnace
|
||||
wrapper.write(Type.BOOLEAN, recipeType == 1 && open); // Furnace
|
||||
wrapper.write(Type.BOOLEAN, filter);
|
||||
wrapper.write(Type.BOOLEAN, recipeType == 2); // Blast Furnace
|
||||
wrapper.write(Type.BOOLEAN, recipeType == 2 && open); // Blast Furnace
|
||||
wrapper.write(Type.BOOLEAN, filter);
|
||||
wrapper.write(Type.BOOLEAN, recipeType == 3); // Smoker
|
||||
wrapper.write(Type.BOOLEAN, recipeType == 3 && open); // Smoker
|
||||
wrapper.write(Type.BOOLEAN, filter);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user