forked from mtcontrib/farming
		
	Merge remote-tracking branch 'upstream/master'
This commit is contained in:
		| @@ -101,7 +101,8 @@ minetest.register_node("farming:hemp_block", { | |||||||
| 	description = S("Hemp Block"), | 	description = S("Hemp Block"), | ||||||
| 	tiles = {"farming_hemp_block.png"}, | 	tiles = {"farming_hemp_block.png"}, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	groups = {snappy = 1, oddly_breakable_by_hand = 1, flammable = 2} | 	groups = {snappy = 1, oddly_breakable_by_hand = 1, flammable = 2}, | ||||||
|  | 	sounds =  default.node_sound_leaves_defaults() | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | minetest.register_craft( { | ||||||
|   | |||||||
							
								
								
									
										6
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								init.lua
									
									
									
									
									
								
							| @@ -7,7 +7,7 @@ | |||||||
|  |  | ||||||
| farming = { | farming = { | ||||||
| 	mod = "redo", | 	mod = "redo", | ||||||
| 	version = "20211204", | 	version = "20220309", | ||||||
| 	path = minetest.get_modpath("farming"), | 	path = minetest.get_modpath("farming"), | ||||||
| 	select = { | 	select = { | ||||||
| 		type = "fixed", | 		type = "fixed", | ||||||
| @@ -407,6 +407,8 @@ end | |||||||
| -- refill placed plant by crabman (26/08/2015) updated by TenPlus1 | -- refill placed plant by crabman (26/08/2015) updated by TenPlus1 | ||||||
| function farming.refill_plant(player, plantname, index) | function farming.refill_plant(player, plantname, index) | ||||||
|  |  | ||||||
|  | 	if not player then return end | ||||||
|  |  | ||||||
| 	local inv = player:get_inventory() | 	local inv = player:get_inventory() | ||||||
| 	local old_stack = inv:get_stack("main", index) | 	local old_stack = inv:get_stack("main", index) | ||||||
|  |  | ||||||
| @@ -493,7 +495,7 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname) | |||||||
| 			-- check for refill | 			-- check for refill | ||||||
| 			if itemstack:get_count() == 0 then | 			if itemstack:get_count() == 0 then | ||||||
|  |  | ||||||
| 				minetest.after(0.10, | 				minetest.after(0.2, | ||||||
| 					farming.refill_plant, | 					farming.refill_plant, | ||||||
| 					placer, | 					placer, | ||||||
| 					name, | 					name, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user