mirror of
				https://github.com/minetest-mods/item_drop.git
				synced 2025-11-04 01:35:26 +01:00 
			
		
		
		
	Enable pickup_keyinvert by default
This commit is contained in:
		@@ -43,7 +43,7 @@ developed by [PilzAdam](https://github.com/PilzAdam/item_drop).
 | 
			
		||||
    * Left and Right keys combined (`LeftAndRight`)
 | 
			
		||||
    * Right mouse button (`RMB`)
 | 
			
		||||
    * Sneak key and right mouse button combined (`SneakAndRMB`)
 | 
			
		||||
  * If `item_drop.pickup_keyinvert` is `true` (false by default), items are
 | 
			
		||||
  * If `item_drop.pickup_keyinvert` is `true`, items are
 | 
			
		||||
    collected when the key is not pressed instead of when it's pressed.
 | 
			
		||||
* Displays a particle of the picked item above the player if
 | 
			
		||||
  `item_drop.pickup_particle` is `true` (true by default)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.lua
									
									
									
									
									
								
							@@ -57,7 +57,7 @@ if legacy_setting_getbool("item_drop.enable_item_pickup",
 | 
			
		||||
	local key_triggered = legacy_setting_getbool("item_drop.enable_pickup_key",
 | 
			
		||||
		"enable_item_pickup_key", true)
 | 
			
		||||
	local key_invert = minetest.settings:get_bool(
 | 
			
		||||
		"item_drop.pickup_keyinvert") or false
 | 
			
		||||
		"item_drop.pickup_keyinvert") ~= false
 | 
			
		||||
	local keytype
 | 
			
		||||
	if key_triggered then
 | 
			
		||||
		keytype = minetest.settings:get("item_drop.pickup_keytype") or
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@ item_drop.enable_item_drop (Enable item drops) bool true
 | 
			
		||||
item_drop.enable_pickup_key (Use pickup key) bool true
 | 
			
		||||
 | 
			
		||||
#Collect items when the key is not pressed instead of when it is pressed
 | 
			
		||||
item_drop.pickup_keyinvert (Invert pickup key) bool false
 | 
			
		||||
item_drop.pickup_keyinvert (Invert pickup key) bool true
 | 
			
		||||
 | 
			
		||||
#What keytype to use as pickup key
 | 
			
		||||
item_drop.pickup_keytype (Pickup keytype) enum Use Use,Sneak,LeftAndRight,RMB,SneakAndRMB
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user