From cd7fb805ac51642969f00f67066d98c9d12e361f Mon Sep 17 00:00:00 2001 From: jp Date: Sat, 8 Aug 2015 18:29:53 +0200 Subject: [PATCH] Remove snow and clay from Work Table (non-solid) --- enchanting.lua | 4 ++-- worktable.lua | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/enchanting.lua b/enchanting.lua index eb579cc..d85dc8e 100644 --- a/enchanting.lua +++ b/enchanting.lua @@ -82,10 +82,10 @@ xdecor.register("enchantment_table", { }, groups = {cracky=1}, sounds = xdecor.stone, - on_construct = enchanting.construct, can_dig = enchanting.dig, - allow_metadata_inventory_put = enchanting.put, + on_construct = enchanting.construct, on_receive_fields = enchanting.fields, + allow_metadata_inventory_put = enchanting.put, allow_metadata_inventory_move = enchanting.move }) diff --git a/worktable.lua b/worktable.lua index d71d65a..a0a49b6 100644 --- a/worktable.lua +++ b/worktable.lua @@ -7,9 +7,9 @@ local material = { "cobble", "mossycobble", "desert_cobble", "stone", "sandstone", "desert_stone", "obsidian", "stonebrick", "sandstonebrick", "desert_stonebrick", "obsidianbrick", - "snowblock", "coalblock", "copperblock", "steelblock", "goldblock", + "coalblock", "copperblock", "steelblock", "goldblock", "bronzeblock", "mese", "diamondblock", - "brick", "cactus", "clay", "ice", "meselamp", + "brick", "cactus", "ice", "meselamp", "glass", "obsidian_glass" } @@ -120,16 +120,16 @@ function worktable.move(pos, from_list, from_index, to_list, to_index, count, pl xdecor.register("worktable", { description = "Work Table", - groups = {cracky=2}, + groups = {cracky=2, choppy=2}, sounds = xdecor.wood, tiles = { "xdecor_worktable_top.png", "xdecor_worktable_top.png", "xdecor_worktable_sides.png", "xdecor_worktable_sides.png", "xdecor_worktable_front.png", "xdecor_worktable_front.png" }, + can_dig = worktable.dig, on_construct = worktable.construct, on_receive_fields = worktable.fields, - can_dig = worktable.dig, allow_metadata_inventory_put = worktable.put, allow_metadata_inventory_move = worktable.move }) @@ -142,8 +142,6 @@ end local function groups(m) if m:find("tree") or m:find("wood") or m == "cactus" then return {choppy=3, not_in_creative_inventory=1} - elseif m == "clay" or m == "snowblock" then - return {snappy=3, not_in_creative_inventory=1} end return {cracky=3, not_in_creative_inventory=1} end