forked from luanti-org/minetest_game
		
	Use Minetest 5.3 'minetest.is_creative_enabled' API (#2795)
This commit is contained in:
		| @@ -140,8 +140,7 @@ screwdriver.handler = function(itemstack, user, pointed_thing, mode, uses) | ||||
| 		minetest.check_for_falling(pos) | ||||
| 	end | ||||
|  | ||||
| 	if not (creative and creative.is_enabled_for and | ||||
| 			creative.is_enabled_for(player_name)) then | ||||
| 	if not minetest.is_creative_enabled(player_name) then | ||||
| 		itemstack:add_wear(65535 / ((uses or 200) - 1)) | ||||
| 	end | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user