Improve frozen code

master
rubenwardy 2019-12-19 21:38:55 +00:00
parent ff64fecf5e
commit c8e7ccc64c
1 changed files with 3 additions and 3 deletions

View File

@ -3,13 +3,13 @@ function classroom.is_frozen(player)
end
minetest.register_entity("classroom:freeze", {
-- This entity needs to be visible otherwise the frozen player won't be visible.
initial_properties = {
physical = true,
collisionbox = { -0.01, -0.01, -0.01, 0.01, 0.01, 0.01 },
visual = "sprite",
visual_size = { x = 0, y = 0 },
textures = { "blank.png" },
is_visible = true,
physical = false, -- Disable collision
pointable = false, -- Disable selection box
makes_footstep_sound = false,
},