Fixed issues when picking up engines of different types. Closes #42
This commit is contained in:
parent
175703ddf2
commit
90f3466960
1 changed files with 8 additions and 2 deletions
|
@ -13,11 +13,17 @@ import net.minecraft.src.ItemBlock;
|
||||||
import net.minecraft.src.ItemStack;
|
import net.minecraft.src.ItemStack;
|
||||||
import net.minecraft.src.buildcraft.core.ItemBlockBuildCraft;
|
import net.minecraft.src.buildcraft.core.ItemBlockBuildCraft;
|
||||||
|
|
||||||
public class ItemEngine extends ItemBlockBuildCraft
|
public class ItemEngine extends ItemBlockBuildCraft {
|
||||||
{
|
|
||||||
|
|
||||||
public ItemEngine(int i) {
|
public ItemEngine(int i) {
|
||||||
super(i, "engine");
|
super(i, "engine");
|
||||||
|
setMaxDamage(0);
|
||||||
|
setHasSubtypes(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMetadata(int i) {
|
||||||
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({ "all" })
|
@SuppressWarnings({ "all" })
|
||||||
|
|
Loading…
Reference in a new issue