Skip to content

Commit

Permalink
Merge pull request #1233 from DoomFruit/KeystoneDoorFix
Browse files Browse the repository at this point in the history
Re-fix issue #1085
  • Loading branch information
Mithion committed Sep 12, 2015
2 parents 52072f8 + 31d8a7b commit d57cec4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/am2/blocks/BlockKeystoneDoor.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package am2.blocks;

import java.util.Random;
import am2.AMCore;
import am2.api.blocks.IKeystoneLockable;
import am2.blocks.tileentities.TileEntityKeystoneDoor;
import am2.guis.ArsMagicaGuiIdList;
import am2.items.ItemsCommonProxy;
import am2.lore.CompendiumUnlockHandler;
import am2.texture.ResourceManager;
import am2.utility.KeystoneUtilities;
Expand All @@ -16,6 +18,7 @@
import net.minecraft.client.renderer.IconFlipped;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
Expand Down Expand Up @@ -172,6 +175,13 @@ public void onBlockHarvested(World world, int x, int y, int z, int meta, EntityP
return;
super.onBlockHarvested(world, x, y, z, meta, player);
}

@Override
public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
{
return ItemsCommonProxy.itemKeystoneDoor;
}


@Override
public TileEntity createNewTileEntity(World world, int i){
Expand Down

0 comments on commit d57cec4

Please sign in to comment.