mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-12 17:41:57 +08:00
Add method to delete properties
This commit is contained in:
parent
27b399621d
commit
5cec293c90
@ -37,6 +37,9 @@ class Property {
|
||||
if (options.label) this.label = options.label;
|
||||
if (options.options) this.options = options.options;
|
||||
}
|
||||
delete() {
|
||||
delete this.class.properties[this.name];
|
||||
}
|
||||
merge(instance, data) {
|
||||
if (data[this.name] == undefined || !Condition(this.condition)) return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user