0.6.1 removing items from player's inv

This subforum contains all the issues which we already resolved.
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

0.6.1 removing items from player's inv

Post by drs9999 »

It looks like that the remove-method is not working for the player's inventory anymore.

When I use:

Code: Select all

if (game.getplayer().character.getinventory(1).getitemcount("nanobots") >= nanobots) then
		game.player.character.getinventory(1).remove{name = "nanobots",count = nanobots}
end
the game crashs (without any error-msg).

Anyway it is still working for other inventories like chests.

So how can I use it in 0.6.x?

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: 0.6.1 removing items from player's inv

Post by cube »

Thank you for noticing this. It is a bug, and it will be fixed in 0.6.2. I'm moving this thread to resolved bugs.
I have no idea what I'm talking about.

Post Reply

Return to “Resolved Problems and Bugs”