Doesn't work: Arrow entities get removed immediately (even before on_activate is called)
Issue #6
resolved
This is because max HP probably gets floored to zero. NEVER USE A NON-INTEGER OR ZERO MAX HP!
diff --git a/arrow.lua b/arrow.lua
index 9f4e158..1fc3d88 100644
--- a/arrow.lua
+++ b/arrow.lua
@@ -93,7 +93,7 @@ minetest.register_entity('x_bows:arrow_entity', {
selectionbox = {0, 0, 0, 0, 0, 0},
physical = false,
textures = {'air'},
- hp_max = 0.5
+ hp_max = 1
},
on_activate = function(self, staticdata)
Comments (3)
-
-
- changed status to resolved
-
-
assigned issue to
-
assigned issue to
- Log in to comment
Thanks Lars Mueller, fixed here https://bitbucket.org/minetest_gamers/x_bows/pull-requests/3