fix not being able to set blueprints to the construction markers

This commit is contained in:
Hea3veN 2015-04-16 20:24:42 -03:00
parent c432ebd2e5
commit cbda740cba
3 changed files with 7 additions and 2 deletions

View file

@ -80,9 +80,10 @@ public class BlockConstructionMarker extends BlockMarker {
} else if (equipped instanceof ItemConstructionMarker) {
if (ItemConstructionMarker.linkStarted(entityplayer.getCurrentEquippedItem())) {
ItemConstructionMarker.link(entityplayer.getCurrentEquippedItem(), world, x, y, z);
return true;
}
}
return true;
return false;
}
}

View file

@ -97,7 +97,7 @@ public class BlockMarker extends BlockBuildCraft {
if (tile instanceof TileMarker) {
((TileMarker) tile).tryConnection();
}
return true;
return false;
}
@Override

View file

@ -123,6 +123,10 @@ public abstract class ItemBlueprint extends ItemBuildCraft implements IBlueprint
}
LibraryId id = getId(stack);
if (id == null) {
return null;
}
NBTTagCompound nbt = BuildCraftBuilders.serverDB.load(id);
BlueprintBase base;
if (((IBlueprintItem) stack.getItem()).getType(stack) == IBlueprintItem.Type.TEMPLATE) {