mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-23 21:39:51 +00:00
Update for 1.11. Missing assets, unstable.
This commit is contained in:
1 parent
30d7365518
commit
9611ae08ae
1145 files changed
+15561
-18107
No files matched your search
@@ -10,11 +10,10 @@
|
||||
******************************************************************************/
|
||||
package forestry.apiculture.items;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import forestry.api.core.Tabs;
|
||||
import forestry.core.items.ICraftingPlan;
|
||||
import forestry.core.items.ItemForestry;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemWaxCast extends ItemForestry implements ICraftingPlan {
|
||||
|
||||
@@ -27,12 +26,8 @@ public class ItemWaxCast extends ItemForestry implements ICraftingPlan {
|
||||
|
||||
@Override
|
||||
public ItemStack planUsed(ItemStack plan, ItemStack result) {
|
||||
plan.setItemDamage(plan.getItemDamage() + result.stackSize);
|
||||
if (plan.getItemDamage() >= plan.getMaxDamage()) {
|
||||
return null;
|
||||
} else {
|
||||
return plan;
|
||||
}
|
||||
plan.setItemDamage(plan.getItemDamage() + result.getCount());
|
||||
return plan;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user