From 36483716ed29699f20b3c7a704a1ab8023989f49 Mon Sep 17 00:00:00 2001 From: Lemente Date: Wed, 15 Jul 2020 20:34:52 +0200 Subject: [PATCH] Update collisionbox for Minetest 5.x (#8) After leaving the spectator mode in Minetest 5.x, the collisionbox isn't the right size and at the right place. I simply changed the values of the collisionbox to match the vanilla ones. A better solution would be to get the current size of the collisionbox when the player enter the spectator mode, store them, and use those when leaving that mode. This would make the mod more compatible with other mods that changes the player's size. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 22f23af..308d9e4 100644 --- a/init.lua +++ b/init.lua @@ -32,7 +32,7 @@ local function unwatching(name) watcher:set_properties({ visual_size = {x = 1, y = 1}, makes_footstep_sound = true, - collisionbox = {-0.3, -1, -0.3, 0.3, 1, 0.3} + collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3} }) if not privs.interact and privs.watch == true then