Return slabs on paper craft(this time without bug)
This commit is contained in:
parent
bdee358c0c
commit
06c156a0c2
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ import gregtech.api.util.GT_OreDictUnificator;
|
||||||
import gregtech.common.items.GT_MetaGenerated_Tool_01;
|
import gregtech.common.items.GT_MetaGenerated_Tool_01;
|
||||||
import ic2.core.Ic2Items;
|
import ic2.core.Ic2Items;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.init.Items;
|
import net.minecraft.init.Items;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.stats.Achievement;
|
import net.minecraft.stats.Achievement;
|
||||||
|
@ -340,6 +341,7 @@ public class GT_Achievements {
|
||||||
if (player == null || stack == null) {
|
if (player == null || stack == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(stack.getItem()==Items.paper){player.inventory.addItemStackToInventory(new ItemStack(Blocks.stone_slab,2));}
|
||||||
ItemData data = GT_OreDictUnificator.getItemData(stack);
|
ItemData data = GT_OreDictUnificator.getItemData(stack);
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
if (data.mPrefix == OrePrefixes.dust && data.mMaterial.mMaterial == Materials.Bronze) {
|
if (data.mPrefix == OrePrefixes.dust && data.mMaterial.mMaterial == Materials.Bronze) {
|
||||||
|
|
Loading…
Reference in a new issue