mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 17:05:20 +01:00
Fix ore dropping and implement subfields
This commit is contained in:
committed by
KingRainbow44
parent
9dae3cbcc7
commit
56f09e87a1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user