mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix potion recipes not working on pre-1.12 servers (#3408)
This commit is contained in:
parent
5ddb0ad90a
commit
37931e4996
1 changed files with 6 additions and 0 deletions
|
@ -629,6 +629,12 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
|
||||||
creativePacket.setContents(this.itemMappings.getCreativeItems());
|
creativePacket.setContents(this.itemMappings.getCreativeItems());
|
||||||
upstream.sendPacket(creativePacket);
|
upstream.sendPacket(creativePacket);
|
||||||
|
|
||||||
|
// Potion mixes are registered by default, as they are needed to be able to put ingredients into the brewing stand.
|
||||||
|
CraftingDataPacket craftingDataPacket = new CraftingDataPacket();
|
||||||
|
craftingDataPacket.setCleanRecipes(true);
|
||||||
|
craftingDataPacket.getPotionMixData().addAll(Registries.POTION_MIXES.get());
|
||||||
|
upstream.sendPacket(craftingDataPacket);
|
||||||
|
|
||||||
PlayStatusPacket playStatusPacket = new PlayStatusPacket();
|
PlayStatusPacket playStatusPacket = new PlayStatusPacket();
|
||||||
playStatusPacket.setStatus(PlayStatusPacket.Status.PLAYER_SPAWN);
|
playStatusPacket.setStatus(PlayStatusPacket.Status.PLAYER_SPAWN);
|
||||||
upstream.sendPacket(playStatusPacket);
|
upstream.sendPacket(playStatusPacket);
|
||||||
|
|
Loading…
Reference in a new issue