aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorBlood-Asp <bloodasphendrik@gmail.com>2016-10-19 18:31:17 +0200
committerBlood-Asp <bloodasphendrik@gmail.com>2016-10-19 18:31:17 +0200
commitfdafabf291840691fcca80cebe1ab27a3a2032c2 (patch)
tree2099a90a83eb3eca65afd1f9b7c67882a8de9b5e /src/main/java
parent37f3215d9902b142ba01c59383d843ca9ef5c5a3 (diff)
downloadGT5-Unofficial-fdafabf291840691fcca80cebe1ab27a3a2032c2.tar.gz
GT5-Unofficial-fdafabf291840691fcca80cebe1ab27a3a2032c2.tar.bz2
GT5-Unofficial-fdafabf291840691fcca80cebe1ab27a3a2032c2.zip
Make Dough by throwing flour into filled cauldron
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java
index f3c3c3ece4..44c875f099 100644
--- a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java
+++ b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java
@@ -793,8 +793,7 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 {
aItemEntity.worldObj.setBlockMetadataWithNotify(tX, tY, tZ, tMetaData - 1, 3);
return true;
}
- }
- if (aPrefix == OrePrefixes.crushed) {
+ }else if (aPrefix == OrePrefixes.crushed) {
Block tBlock = aItemEntity.worldObj.getBlock(tX, tY, tZ);
byte tMetaData = (byte) aItemEntity.worldObj.getBlockMetadata(tX, tY, tZ);
if ((tBlock == Blocks.cauldron) && (tMetaData > 0)) {
@@ -802,6 +801,14 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 {
aItemEntity.worldObj.setBlockMetadataWithNotify(tX, tY, tZ, tMetaData - 1, 3);
return true;
}
+ }else if(aPrefix == OrePrefixes.dust && aMaterial == Materials.Wheat){
+ Block tBlock = aItemEntity.worldObj.getBlock(tX, tY, tZ);
+ byte tMetaData = (byte) aItemEntity.worldObj.getBlockMetadata(tX, tY, tZ);
+ if ((tBlock == Blocks.cauldron) && (tMetaData > 0)) {
+ aItemEntity.setEntityItemStack(ItemList.Food_Dough.get(aItemEntity.getEntityItem().stackSize, new Object[]{}));
+ aItemEntity.worldObj.setBlockMetadataWithNotify(tX, tY, tZ, tMetaData - 1, 3);
+ return true;
+ }
}
}
}