Skip to content

Commit 5360b98

Browse files
committed
swap getPower returns to be same as setPower
docs: minor changes
1 parent 41a0df5 commit 5360b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/building-hacks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ static int getPower(lua_State*L)
572572
{
573573
df::power_info info;
574574
ptr->get_current_power(&info);
575-
lua_pushinteger(L, info.produced);
576575
lua_pushinteger(L, info.consumed);
576+
lua_pushinteger(L, info.produced);
577577
return 2;
578578
}
579579
return 0;

0 commit comments

Comments
 (0)