File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,17 @@ core.register_entity(":__builtin:item", {
145
145
y = pos .y + self .object :get_properties ().collisionbox [2 ] - 0.05 ,
146
146
z = pos .z
147
147
})
148
+ -- Delete in 'ignore' nodes
149
+ if node and node .name == " ignore" then
150
+ self .itemstring = " "
151
+ self .object :remove ()
152
+ return
153
+ end
154
+
148
155
local vel = self .object :getvelocity ()
149
156
local def = node and core .registered_nodes [node .name ]
150
- -- Avoid entity falling into ignore nodes or unloaded areas
151
- local is_moving = node and node .name ~= " ignore" and
152
- ((def and not def .walkable ) or vel .x ~= 0 or vel .y ~= 0 or vel .z ~= 0 )
157
+ local is_moving = (def and not def .walkable ) or
158
+ vel .x ~= 0 or vel .y ~= 0 or vel .z ~= 0
153
159
local is_slippery = false
154
160
155
161
if def and def .walkable then
You can’t perform that action at this time.
0 commit comments