Skip to content

Commit

Permalink
Fix undefined lastBuildingSlot issue for shipyard/defense
Browse files Browse the repository at this point in the history
Co-Authored-By: R3JpbG8uc2g= <[email protected]>
  • Loading branch information
lanedirt and SuGolYolLom committed Dec 12, 2024
1 parent 8341004 commit e149d15
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/views/ingame/ajax/object.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@
@if ($object_type == \OGame\GameObjects\Models\Enums\GameObjectType::Building || $object_type == \OGame\GameObjects\Models\Enums\GameObjectType::Station))
{{-- Last building slot warning for buildings --}}
@include ('ingame.shared.buildings.last-building-slot-warning', ['planet' => $planet])
@else
{{-- Define default last building slot warning variables for other objects --}}
<script type="text/javascript">
var lastBuildingSlot = {
"showWarning": false,
"slotWarning": ""
};
</script>
@endif
<script>
$(document).ready(function () {
Expand Down

0 comments on commit e149d15

Please sign in to comment.