mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 05:33:00 +00:00 
			
		
		
		
	Fixed bad assumption about empty ItemStacks being reset to ItemStack.EMPTY. Items no longer transfer into an inventory as a different item than they began.
This commit is contained in:
		| @@ -273,7 +273,7 @@ public class InventoryMethods implements GenericSource | |||||||
|  |  | ||||||
|         // Mutate destination and source ItemStack |         // Mutate destination and source ItemStack | ||||||
|         ItemStack destination = to.getStack(toSlot); |         ItemStack destination = to.getStack(toSlot); | ||||||
|         if (destination == ItemStack.EMPTY) { |         if (destination.isEmpty()) { | ||||||
|             ItemStack newStack = source.copy(); |             ItemStack newStack = source.copy(); | ||||||
|             newStack.setCount(count); |             newStack.setCount(count); | ||||||
|             to.setStack(toSlot, newStack); |             to.setStack(toSlot, newStack); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 David Queneau
					David Queneau