[1.1.74] Cloned item-on-ground loses to_be_looted = true

This subforum contains all the issues which we already resolved.
Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

[1.1.74] Cloned item-on-ground loses to_be_looted = true

Post by Honktown »

If an item on the ground is to_be_looted, it loses the status when cloned:

Code: Select all

/c
local player = game.player
local surface = player.surface
local position = player.position
position.x = position.x + 5
local spill_items = surface.spill_item_stack(
	position, --[[position]]
	{name = "iron-plate", count = 1}, --[[items]]
	true --[[enable_looted]]
)
local original = spill_items[1]
game.print(game.tick.." original to be looted? "..tostring(original.to_be_looted))

position.y = position.y - 1
local clone = original.clone{
	position = position
}
game.print(game.tick.." clone to be looted? "..tostring(clone.to_be_looted))

I have mods! I guess!
Link

Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Re: [1.1.74] Cloned item-on-ground loses to_be_looted = true

Post by Honktown »

result:
Attachments
text.jpg
text.jpg (130.22 KiB) Viewed 1426 times
I have mods! I guess!
Link

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.74] Cloned item-on-ground loses to_be_looted = true

Post by Rseding91 »

Thanks for the report. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”