@@ -35,8 +35,8 @@ func (k msgServer) StructBuildComplete(goCtx context.Context, msg *types.MsgStru
3535 }
3636
3737 if structure .IsBuilt () {
38- structure .GetOwner ().Discharge ()
39- structure .GetOwner ().Commit ()
38+ // structure.GetOwner().Discharge()
39+ // structure.GetOwner().Commit()
4040 return & types.MsgStructStatusResponse {}, types .NewStructStateError (msg .StructId , "built" , "building" , "build_complete" )
4141 }
4242
@@ -58,9 +58,9 @@ func (k msgServer) StructBuildComplete(goCtx context.Context, msg *types.MsgStru
5858 structure .GetOwner ().StructsLoadDecrement (structure .GetStructType ().BuildDraw )
5959
6060 if ! structure .GetOwner ().CanSupportLoadAddition (structure .GetStructType ().PassiveDraw ) {
61- structure .GetOwner ().StructsLoadIncrement (structure .GetStructType ().BuildDraw )
61+ // structure.GetOwner().StructsLoadIncrement(structure.GetStructType().BuildDraw)
6262 //structure.GetOwner().Discharge()
63- structure .GetOwner ().Commit ()
63+ // structure.GetOwner().Commit()
6464 return & types.MsgStructStatusResponse {}, types .NewPlayerPowerError (structure .GetOwnerId (), "capacity_exceeded" ).WithCapacity (structure .GetStructType ().PassiveDraw , structure .GetOwner ().GetAvailableCapacity ())
6565 }
6666
@@ -72,10 +72,10 @@ func (k msgServer) StructBuildComplete(goCtx context.Context, msg *types.MsgStru
7272
7373 valid , achievedDifficulty := types .HashBuildAndCheckDifficulty (hashInput , msg .Proof , currentAge , structure .GetStructType ().BuildDifficulty )
7474 if ! valid {
75- structure .GetOwner ().StructsLoadIncrement (structure .GetStructType ().BuildDraw )
75+ // structure.GetOwner().StructsLoadIncrement(structure.GetStructType().BuildDraw)
7676 //structure.GetOwner().Discharge()
7777 //structure.GetOwner().Halt()
78- structure .GetOwner ().Commit ()
78+ // structure.GetOwner().Commit()
7979 return & types.MsgStructStatusResponse {}, types .NewWorkFailureError ("build" , structure .GetStructId (), hashInput )
8080 }
8181
0 commit comments