mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
[puzzle] Prevent pipette cheats (miners, emitters)
This commit is contained in:
parent
00bf121c3b
commit
680a385e2d
@ -366,7 +366,8 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
|||||||
if (
|
if (
|
||||||
tileBelow &&
|
tileBelow &&
|
||||||
this.root.app.settings.getAllSettings().pickMinerOnPatch &&
|
this.root.app.settings.getAllSettings().pickMinerOnPatch &&
|
||||||
this.root.currentLayer === "regular"
|
this.root.currentLayer === "regular" &&
|
||||||
|
this.root.gameMode.hasResources()
|
||||||
) {
|
) {
|
||||||
this.currentMetaBuilding.set(gMetaBuildingRegistry.findByClass(MetaMinerBuilding));
|
this.currentMetaBuilding.set(gMetaBuildingRegistry.findByClass(MetaMinerBuilding));
|
||||||
|
|
||||||
@ -390,6 +391,12 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disallow picking excluded buildings
|
||||||
|
if (this.root.gameMode.isBuildingExcluded(extracted.metaClass)) {
|
||||||
|
this.currentMetaBuilding.set(null);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// If the building we are picking is the same as the one we have, clear the cursor.
|
// If the building we are picking is the same as the one we have, clear the cursor.
|
||||||
if (
|
if (
|
||||||
this.currentMetaBuilding.get() &&
|
this.currentMetaBuilding.get() &&
|
||||||
|
Loading…
Reference in New Issue
Block a user