mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Fixed use() in object scripts. It should work now
This commit is contained in:
@@ -137,6 +137,26 @@ public class TangibleObject extends SWGObject {
|
||||
this.optionsBitmask = optionsBitmask;
|
||||
}
|
||||
|
||||
public void setOptions(int options, boolean add) {
|
||||
synchronized(objectMutex) {
|
||||
if (options != 0) {
|
||||
if (add) {
|
||||
addOption(options);
|
||||
} else {
|
||||
removeOption(options);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void addOption(int option) {
|
||||
setOptionsBitmask(getOptionsBitmask() | option);
|
||||
}
|
||||
|
||||
public void removeOption(int option) {
|
||||
setOptionsBitmask(getOptionsBitmask() & ~option);
|
||||
}
|
||||
|
||||
public int getMaxDamage() {
|
||||
return maxDamage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user