change layout
This commit is contained in:
@@ -97,9 +97,9 @@ window.sendCommand = async function() {
|
||||
let payload = {};
|
||||
|
||||
if (type === 'build') {
|
||||
const building_id = document.getElementById('building-select').value;
|
||||
if (!building_id) return alert('Παρακαλώ επιλέξτε Κατασκευή πρώτα.');
|
||||
|
||||
const building_id = window.selectedBuildingId;
|
||||
if (!building_id) return alert('Παρακαλώ επιλέξτε Κατασκευή από τον πίνακα.');
|
||||
|
||||
const bData = town.build_data?.[building_id];
|
||||
|
||||
// UI Validation logic
|
||||
|
||||
Reference in New Issue
Block a user