summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Euchner <norrepli@gmail.com>2014-11-22 22:30:31 +0100
committerFlorian Euchner <norrepli@gmail.com>2014-11-22 22:30:31 +0100
commitfb5c9edaf48ba863c18b4ead85eceef5a74e5b78 (patch)
tree53d7c840b17213461673fcb8f6503ba6421a3300
parentf977ac821aa2f6c7053ec7f65d289c57de1e91a8 (diff)
parentb9178dfcaaae366f93b399ab05d3c8e205c0f76e (diff)
downloadmesecons-fb5c9edaf48ba863c18b4ead85eceef5a74e5b78.tar
mesecons-fb5c9edaf48ba863c18b4ead85eceef5a74e5b78.tar.gz
mesecons-fb5c9edaf48ba863c18b4ead85eceef5a74e5b78.tar.bz2
mesecons-fb5c9edaf48ba863c18b4ead85eceef5a74e5b78.tar.xz
mesecons-fb5c9edaf48ba863c18b4ead85eceef5a74e5b78.zip
Merge pull request #156 from HybridDog/ov_it
Use minetest.override_item to redefine mese
-rw-r--r--mesecons_extrawires/mesewire.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/mesecons_extrawires/mesewire.lua b/mesecons_extrawires/mesewire.lua
index cbb882e..150178c 100644
--- a/mesecons_extrawires/mesewire.lua
+++ b/mesecons_extrawires/mesewire.lua
@@ -8,12 +8,7 @@ local mesewire_rules =
{x = 0, y = 0, z =-1},
}
-minetest.register_node(":default:mese", {
- description = "Mese Block",
- tiles = {minetest.registered_nodes["default:mese"].tiles[1]},
- is_ground_content = true,
- groups = {cracky=1},
- sounds = default.node_sound_stone_defaults(),
+minetest.override_item("default:mese", {
mesecons = {conductor = {
state = mesecon.state.off,
onstate = "mesecons_extrawires:mese_powered",