Commit graph

10 commits

Author SHA1 Message Date
Starbeamrainbowlabs c2c0fa5d8d
core: if worldedit is installed also register commands there
This ensures that e.g. //cubeapply continues to work as expected
2022-05-19 22:13:09 +01:00
Starbeamrainbowlabs c53fb32d2b
core: fix register_command and run_command 2022-05-19 02:40:05 +01:00
Starbeamrainbowlabs 95c0e96da9
core: fix luacheck errors 2022-05-19 02:32:17 +01:00
Starbeamrainbowlabs b816133716
core: implement fetch_command_def
This rovides an abstraction to fetch a worldedit command's definition, 
regardless of where it was registered.

We would normally expect all commands to be registered in 
wea_c.registered_commands, but before we only do a one-off pass to 
import commands from worldedit should a new mod we aren't aware of 
register a command with worldedit and get loaded after us, we won't 
detect it - hencee  the need for this function.
2022-05-19 02:31:01 +01:00
Starbeamrainbowlabs c60b5c5bad
core: fix bugs, enable! 2022-05-19 01:45:36 +01:00
Starbeamrainbowlabs 1fda9725c7
Implement run_command, but it's not quite finished yet
We still have yet to implement safe_region. Doing so will be 
non-trivial, as we'll need to override //y and //n, but then  also keep 
track of commands defined in worldedit and call the right version of //y 
and //n.
2022-05-17 01:03:58 +01:00
Starbeamrainbowlabs 4ab386788d
fixup 2022-05-16 23:41:09 +01:00
Starbeamrainbowlabs fa9b511e33
core: finish initial register_command 2022-05-16 23:40:03 +01:00
Starbeamrainbowlabs 19c8d0e7b9
core: make options.nodes_needed optional 2022-05-16 23:33:22 +01:00
Starbeamrainbowlabs f984f5d7b7
Begin rewriting worldeditadditions_core
We should be able to make things a lot cleaner and more robust.
2022-05-16 23:32:40 +01:00