summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-08-24 00:20:25 +0100
committerRealBadAngel <maciej.kasatkin@o2.pl>2014-08-28 15:14:05 +0200
commit45919b871a38109ac9d754788d6a361a354bfd81 (patch)
treedddd193800e40ea43aa4bea67012d9c804a48ed7
parent706e880f05dd03a276c2639c11a35e836766e3fd (diff)
Make forcefield properly undiggable
-rw-r--r--manual.md10
-rw-r--r--technic/machines/HV/forcefield.lua3
2 files changed, 8 insertions, 5 deletions
diff --git a/manual.md b/manual.md
index 57ff8f0..4cd4f70 100644
--- a/manual.md
+++ b/manual.md
@@ -1037,10 +1037,12 @@ the emitter must be receiving a mesecon signal in addition to being
manually enabled, in order for it to generate the forcefield.
The forcefield itself behaves largely as if solid, despite being
-immaterial: it cannot be traversed, and prevents access to blocks
-behind it. It is transparent, but not totally invisible. It cannot
-be dug by ordinary tools, but (a bug) can be removed by special digging
-tools such as the mining drills.
+immaterial: it cannot be traversed, and prevents access to blocks behind
+it. It is transparent, but not totally invisible. It cannot be dug.
+Some effects can pass through it, however, such as the beam of a mining
+laser, and explosions. In fact, explosions as currently implemented by
+the tnt mod actually temporarily destroy the forcefield itself; the tnt
+mod assumes too much about the regularity of node types.
The forcefield occupies space that would otherwise have been air, but does
not replace or otherwise interfere with materials that are solid, liquid,
diff --git a/technic/machines/HV/forcefield.lua b/technic/machines/HV/forcefield.lua
index fadc9cb..2bf74bb 100644
--- a/technic/machines/HV/forcefield.lua
+++ b/technic/machines/HV/forcefield.lua
@@ -218,9 +218,10 @@ minetest.register_node("technic:forcefield", {
description = S("%s Forcefield"):format("HV"),
sunlight_propagates = true,
drawtype = "glasslike",
- groups = {not_in_creative_inventory=1, unbreakable=1},
+ groups = {not_in_creative_inventory=1},
paramtype = "light",
light_source = 15,
+ diggable = false,
drop = '',
tiles = {{
name = "technic_forcefield_animated.png",