From f6eedea1a116544c796a130ab66447ec8746642d Mon Sep 17 00:00:00 2001 From: Aaron Suen Date: Sat, 20 Jun 2020 22:03:46 -0400 Subject: [PATCH] Fix infinite sand exploit --- mods/nc_optics/crafting.lua | 2 +- mods/nc_optics/glass.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/nc_optics/crafting.lua b/mods/nc_optics/crafting.lua index cc0e4143..0efd3a04 100644 --- a/mods/nc_optics/crafting.lua +++ b/mods/nc_optics/crafting.lua @@ -66,7 +66,7 @@ nodecore.register_craft({ toolgroups = {thumpy = 3}, nodes = { { - match = {groups = {silica = true, silica_lens = false, visinv = false}}, + match = {groups = {silica = true, silica_molten = false, silica_lens = false, visinv = false}}, replace = "nc_terrain:sand_loose" } } diff --git a/mods/nc_optics/glass.lua b/mods/nc_optics/glass.lua index 10312ab4..fd9d0b30 100644 --- a/mods/nc_optics/glass.lua +++ b/mods/nc_optics/glass.lua @@ -108,6 +108,7 @@ local moltdef = { groups = { igniter = 1, silica = 1, + silica_molten = 1, stack_as_node = 1, damage_touch = 1, damage_radiant = 3