Prevent recipe ID conflict

This commit is contained in:
Camotoy 2024-10-28 01:31:08 -04:00
parent 0f1a32e1c1
commit 6c0d3419fc
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -684,7 +684,7 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
this.openInventory = null;
this.craftingRecipes = new Int2ObjectOpenHashMap<>();
this.javaToBedrockRecipeIds = new Int2ObjectOpenHashMap<>();
this.lastRecipeNetId = new AtomicInteger(InventoryUtils.LAST_RECIPE_NET_ID);
this.lastRecipeNetId = new AtomicInteger(InventoryUtils.LAST_RECIPE_NET_ID + 1);
this.spawned = false;
this.loggedIn = false;