mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	A small robustness addition to ItemStack
This commit is contained in:
		@@ -1496,7 +1496,7 @@ private:
 | 
			
		||||
	{
 | 
			
		||||
		ItemStack *o = checkobject(L, 1);
 | 
			
		||||
		push_stack_item(L, o->m_stack);
 | 
			
		||||
		if(o->m_stack->getCount() == 1){
 | 
			
		||||
		if(o->m_stack->getCount() <= 1){
 | 
			
		||||
			delete o->m_stack;
 | 
			
		||||
			o->m_stack = NULL;
 | 
			
		||||
		} else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user