mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Added math.floor
This commit is contained in:
@@ -22,6 +22,7 @@ Event.add(defines.events.on_player_created, function(event)
|
|||||||
local stats = player.force.item_production_statistics
|
local stats = player.force.item_production_statistics
|
||||||
local made = stats.get_input_count(item)
|
local made = stats.get_input_count(item)
|
||||||
local success,count = pcall(callback,made,stats.get_input_count,player)
|
local success,count = pcall(callback,made,stats.get_input_count,player)
|
||||||
|
count = math.floor(count)
|
||||||
if success and count > 0 then
|
if success and count > 0 then
|
||||||
player.insert{name=item,count=count}
|
player.insert{name=item,count=count}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user