params_text in def.parse worldeditadditions_core/register/check.lua

Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
VorTechnix 2021-07-15 14:04:43 -07:00 committed by GitHub
parent 7b651d7abe
commit 49617b7f47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ function worldeditadditions_core.register_command(def)
def.require_pos = def.require_pos or 0 def.require_pos = def.require_pos or 0
assert(def.require_pos >= 0 and def.require_pos < 3) assert(def.require_pos >= 0 and def.require_pos < 3)
if def.params == "" and not def.parse then if def.params == "" and not def.parse then
def.parse = function(param) return true end def.parse = function(params_text) return true end
else else
assert(def.parse) assert(def.parse)
end end