From 81f8fb916b6a6b1a7657dfe9f434ec3a7c7ee80d Mon Sep 17 00:00:00 2001 From: runs Date: Sun, 1 Aug 2021 16:47:39 +0200 Subject: [PATCH] fixes --- init.lua | 6 ++++++ ptol.conf | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index f2b46c0..862eeee 100644 --- a/init.lua +++ b/init.lua @@ -82,6 +82,12 @@ minetest.register_entity("ptol:freeze", { end end, + on_activate = function(self, staticdata, dtime_s) --on_activate, required + if dtime_s > 0 then --loaded, nor new + self.object:remove() + end + end, + set_frozen_player = function(self, player) self.pname = player:get_player_name() player:set_attach(self.object, "", {x = 0, y = 0, z = 0 }, { x = 0, y = 0, z = 0 }) diff --git a/ptol.conf b/ptol.conf index f2bceaa..f728f06 100644 --- a/ptol.conf +++ b/ptol.conf @@ -5,7 +5,7 @@ world_center=(0,0,0) shape=box #The radius between spheres or boxes ##for a box the "radius" is edge/2 -radius=256 +radius=100 #Timing to check if a player is in his allowed area time=1 #The angle for a player return to his area,