mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 01:39:52 +03:00
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
--- ../src-base/minecraft/net/minecraft/stats/RecipeBookServer.java
|
|
+++ ../src-work/minecraft/net/minecraft/stats/RecipeBookServer.java
|
|
@@ -55,7 +55,7 @@
|
|
|
|
private void sendPacket(SPacketRecipeBook.State state, EntityPlayerMP player, List<IRecipe> recipesIn)
|
|
{
|
|
- player.connection.sendPacket(new SPacketRecipeBook(state, recipesIn, Collections.emptyList(), this.isGuiOpen, this.isFilteringCraftable));
|
|
+ net.minecraftforge.common.ForgeHooks.sendRecipeBook(player.connection, state, recipesIn, Collections.emptyList(), this.isGuiOpen, this.isFilteringCraftable);
|
|
}
|
|
|
|
public NBTTagCompound write()
|
|
@@ -147,6 +147,6 @@
|
|
|
|
public void init(EntityPlayerMP player)
|
|
{
|
|
- player.connection.sendPacket(new SPacketRecipeBook(SPacketRecipeBook.State.INIT, this.getRecipes(), this.getDisplayedRecipes(), this.isGuiOpen, this.isFilteringCraftable));
|
|
+ net.minecraftforge.common.ForgeHooks.sendRecipeBook(player.connection, SPacketRecipeBook.State.INIT, this.getRecipes(), this.getDisplayedRecipes(), this.isGuiOpen, this.isFilteringCraftable);
|
|
}
|
|
}
|