Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna committed Jun 21, 2024
1 parent ac81ed4 commit 25997b0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cardinal/system/player_spawner.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,15 @@ func PlayerSpawnerSystem(world cardinal.WorldContext) error {
mainBuildingID, err := cardinal.Create(world,
playerComponent,
comp.Building{
Level: building.Level,
Type: building.Type,
Level: building.Level,
Type: building.Type,
FarmingResource: building.FarmingResource,
FarmingSpeed: building.FarmingSpeed,
Effect: building.Effect,
EffectAmount: building.EffectAmount,
UnitLimit: building.UnitLimit,
FarmingSpeed: building.FarmingSpeed,
Effect: building.Effect,
EffectAmount: building.EffectAmount,
UnitLimit: building.UnitLimit,
StorageCapacity: building.StorageCapacity,
},
comp.GetBuilding(comp.Main),
)

if err != nil {
Expand Down

0 comments on commit 25997b0

Please sign in to comment.