镜像供应器同步智能阻挡
This commit is contained in:
parent
260b9fdc3c
commit
54ac5c11fe
|
|
@ -429,17 +429,15 @@ public class MirrorPatternProviderBlockEntity extends PatternProviderBlockEntity
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasDifferentMirroredSettings(PatternProviderLogicHost master) {
|
private boolean hasDifferentMirroredSettings(PatternProviderLogicHost master) {
|
||||||
var mirrorLogic = this.getLogic();
|
var mirrorSettings = new CompoundTag();
|
||||||
var masterLogic = master.getLogic();
|
var masterSettings = new CompoundTag();
|
||||||
|
|
||||||
|
this.exportSettings(SettingsFrom.MEMORY_CARD, mirrorSettings, null);
|
||||||
|
exportMasterSettings(master, masterSettings);
|
||||||
|
|
||||||
return !Objects.equals(this.getCustomName(), getCustomName(master))
|
return !Objects.equals(this.getCustomName(), getCustomName(master))
|
||||||
|| this.getPriority() != master.getPriority()
|
|| this.getPriority() != master.getPriority()
|
||||||
|| mirrorLogic.getConfigManager().getSetting(Settings.BLOCKING_MODE)
|
|| !Objects.equals(mirrorSettings, masterSettings)
|
||||||
!= masterLogic.getConfigManager().getSetting(Settings.BLOCKING_MODE)
|
|
||||||
|| mirrorLogic.getConfigManager().getSetting(Settings.PATTERN_ACCESS_TERMINAL)
|
|
||||||
!= masterLogic.getConfigManager().getSetting(Settings.PATTERN_ACCESS_TERMINAL)
|
|
||||||
|| mirrorLogic.getConfigManager().getSetting(Settings.LOCK_CRAFTING_MODE)
|
|
||||||
!= masterLogic.getConfigManager().getSetting(Settings.LOCK_CRAFTING_MODE)
|
|
||||||
|| supportsPushDirectionState(master)
|
|| supportsPushDirectionState(master)
|
||||||
&& this.getBlockState().getValue(PatternProviderBlock.PUSH_DIRECTION) != getPushDirection(master);
|
&& this.getBlockState().getValue(PatternProviderBlock.PUSH_DIRECTION) != getPushDirection(master);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user