summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-04-02 21:24:41 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-04-02 21:24:41 +0100
commit2418e2af21a3b1c1e4738b9a1bbd89469ee6665a (patch)
treed48d21a2c70b7f31cc09c3037a945b0e0ef24c2b /api.lua
parent7bb3cd8d8573e2fdf64d88b4256848f1b9e186c4 (diff)
add default collisionbox
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index 990a989..b36d63e 100644
--- a/api.lua
+++ b/api.lua
@@ -2846,7 +2846,7 @@ minetest.register_entity(name, {
hp_min = max(1, (def.hp_min or 5) * difficulty),
hp_max = max(1, (def.hp_max or 10) * difficulty),
physical = true,
- collisionbox = def.collisionbox,
+ collisionbox = def.collisionbox or {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
selectionbox = def.selectionbox or def.collisionbox,
visual = def.visual,
visual_size = def.visual_size or {x = 1, y = 1},