改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) {
|
public boolean control(C command) {
|
||||||
if (this.command == null)
|
if (this.command != null && this.command.equals(command)) //相同指令
|
||||||
return false;
|
|
||||||
if (this.command.equals(command)) //相同指令
|
|
||||||
return false;
|
return false;
|
||||||
if (!this.checkConditionBeforeControl(command)) //是否符合条件
|
if (!this.checkConditionBeforeControl(command)) //是否符合条件
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user