改bug
This commit is contained in:
parent
c36e0eaf9c
commit
9ae79dbe53
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user