mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-10-31 14:25:28 +01:00 
			
		
		
		
	fix seating only working once till server restarts
This commit is contained in:
		| @@ -142,6 +142,7 @@ function lrfurn.stand(clicker) | |||||||
| 	xcompat.player.player_attached[clicker:get_player_name()] = false | 	xcompat.player.player_attached[clicker:get_player_name()] = false | ||||||
| 	if physics_cache[clicker:get_player_name()] then | 	if physics_cache[clicker:get_player_name()] then | ||||||
| 		clicker:set_physics_override(physics_cache[clicker:get_player_name()]) | 		clicker:set_physics_override(physics_cache[clicker:get_player_name()]) | ||||||
|  | 		physics_cache[clicker:get_player_name()] = nil | ||||||
| 	else --in case this is called and the cache is empty | 	else --in case this is called and the cache is empty | ||||||
| 		clicker:set_physics_override({speed = 1, jump = 1, gravity = 1}) | 		clicker:set_physics_override({speed = 1, jump = 1, gravity = 1}) | ||||||
| 	end | 	end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user