Page 1 of 1
					
				game.player.caninsert() always returns true
				Posted: Sat Dec 13, 2014 1:50 pm
				by ForFoxAche
				Am I missing something or does game.player.caninsert() always return true?
http://i.imgur.com/8gE74Xs.png 
			
					
				Re: game.player.caninsert() always returns true
				Posted: Tue Feb 03, 2015 11:12 am
				by kovarex
				What was the command exactly?
			 
			
					
				Re: game.player.caninsert() always returns true
				Posted: Tue Feb 03, 2015 4:33 pm
				by Rseding91
				This may have been related to this issue: 
https://forums.factorio.com/forum/vie ... =11&t=5477
But, without the screenshot I'm not positive.
 
			
					
				Re: game.player.caninsert() always returns true
				Posted: Tue Feb 17, 2015 6:10 pm
				by Rseding91
				I think I found the problem 
 
Line 126 of LuaControl:
Code: Select all
bool canInsert(const ItemStack& itemStack) 
{ 
  this->failIfNotValid(); 
  return this->player 
         ? true 
         : (*this->entityTarget)->canInsert(itemStack, false, false); 
}
 
			
					
				Re: game.player.caninsert() always returns true
				Posted: Thu Feb 19, 2015 7:43 pm
				by kovarex
				Thanks for the notice, fixed for 0.11.17.