Fixed applying the type of tunnel for P2P tunnels.

This was caused by the enforced lowercase mod id's and item names since 1.11.
This commit is contained in:
Gunther De Wachter
2017-07-12 06:04:06 +02:00
parent fe213e5ac5
commit eb11845a2f
3 changed files with 21 additions and 18 deletions
@@ -160,7 +160,7 @@ public abstract class PartP2PTunnel<T extends PartP2PTunnel> extends PartBasicSt
@Override
public boolean onPartActivate( final EntityPlayer player, final EnumHand hand, final Vec3d pos )
{
final ItemStack is = player.inventory.getCurrentItem();
final ItemStack is = player.getHeldItem( hand );
// UniqueIdentifier id = GameRegistry.findUniqueIdentifierFor( is.getItem() );
// AELog.info( "ID:" + id.toString() + " : " + is.getItemDamage() );