mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Further blueprint improvements
This commit is contained in:
@@ -41,23 +41,6 @@ export class MetaMinerBuilding extends MetaBuilding {
|
||||
return super.getAvailableVariants(root);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
* @param {object} param0
|
||||
* @param {Vector} param0.origin
|
||||
* @param {number} param0.rotation
|
||||
* @param {number} param0.rotationVariant
|
||||
* @param {string} param0.variant
|
||||
*/
|
||||
performAdditionalPlacementChecks(root, { origin, rotation, rotationVariant, variant }) {
|
||||
// Make sure its placed above a resource
|
||||
const lowerLayer = root.map.getLowerLayerContentXY(origin.x, origin.y);
|
||||
if (!lowerLayer) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the entity at the given location
|
||||
* @param {Entity} entity
|
||||
|
||||
Reference in New Issue
Block a user