mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 19:29:17 +00:00
Fix #432 Client crash when crafting fence with new planks
This commit is contained in:
1 parent
e77f62d8e7
commit
7981288250
1 file changed
+2
-2
@@ -496,9 +496,9 @@ public class PluginArboriculture extends ForestryPlugin {
|
||||
for (WoodType woodType : WoodType.values()) {
|
||||
int i = woodType.ordinal();
|
||||
if (i < 16)
|
||||
Proxies.common.addRecipe(ForestryBlock.fences1.getItemStack(4, i), "###", "# #", '#', ForestryBlock.planks1.getItemStack(1, i));
|
||||
Proxies.common.addRecipe(ForestryBlock.fences1.getItemStack(4, i % 16), "###", "# #", '#', ForestryBlock.planks1.getItemStack(1, i % 16));
|
||||
else if (i < 32)
|
||||
Proxies.common.addRecipe(ForestryBlock.fences2.getItemStack(4, i), "###", "# #", '#', ForestryBlock.planks2.getItemStack(1, i % 16));
|
||||
Proxies.common.addRecipe(ForestryBlock.fences2.getItemStack(4, i % 16), "###", "# #", '#', ForestryBlock.planks2.getItemStack(1, i % 16));
|
||||
else
|
||||
throw new RuntimeException("Wood type has no fences defined");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user