Fix ore dropping and implement subfields

This commit is contained in:
StartForKiller
2023-06-03 15:16:24 -04:00
committed by KingRainbow44
parent 9dae3cbcc7
commit 56f09e87a1
8 changed files with 174 additions and 3 deletions

View File

@@ -1599,6 +1599,16 @@ public class ScriptLib {
return 0;
}
public int DropSubfield(LuaTable table) {
String subfield_name = table.get("subfield_name").toString();
var entity = getCurrentEntity();
if(!entity.isPresent()) return -1;
entity.get().dropSubfield(subfield_name);
return -1;
}
public int[] GetGatherConfigIdList() {
EntityGadget gadget = getCurrentEntityGadget();