This commit is contained in:
joylink_zhangsai 2022-05-31 15:56:06 +08:00
parent c36e0eaf9c
commit 9ae79dbe53

View File

@ -37,9 +37,7 @@ public abstract class ControllableVrDevice<C> extends VirtualRealityDevice {
}
public boolean control(C command) {
if (this.command == null)
return false;
if (this.command.equals(command)) //相同指令
if (this.command != null && this.command.equals(command)) //相同指令
return false;
if (!this.checkConditionBeforeControl(command)) //是否符合条件
return false;