Fix recipe book glitch on <1.16.2 servers (#2715)

This commit is contained in:
Redned 2021-10-23 02:30:03 -05:00 committed by GitHub
parent bd2bd1cf32
commit ff5ad2385c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
});
}