spawnAsEntity(world, pos, itemStack);
}
else
{
DoorTileEntity te = getDoor(world, pos);
<BUG>if (te == null)
return;</BUG>
if (te.getDescriptor() != null && te.getDescriptor().hasCode())
return;
boolean powered = te.isPowered();

spawnAsEntity(world, pos, itemStack);
}
else
{
DoorTileEntity te = getDoor(world, pos);
if (te == null)
return;
if (te.getDescriptor().getRedstoneBehavior() == RedstoneBehavior.HAND_ONLY
|| te.getDescriptor().getRedstoneBehavior() == RedstoneBehavior.REDSTONE_LOCK)
return;
if (te.getDescriptor() != null && te.getDescriptor().hasCode())
return;
boolean powered = te.isPowered();
