9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-19 14:59:30 +00:00

dont skip wire updates on vanilla redstone

This commit is contained in:
Samsuik
2025-02-21 01:09:53 +00:00
parent 09291b00e4
commit 33898edb8a
2 changed files with 3 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ public final class RedstoneNetwork {
}
}
public boolean applyFromCache(Level level) {
public boolean applyFromCache(Level level, WorldConfiguration.Misc.RedstoneImplementation redstoneImplementation) {
this.expiry.refresh(level.getGameTime());
if (!this.isRegistered() || !this.verifyWiresInNetwork(level)) {
return false;
@@ -167,7 +167,7 @@ public final class RedstoneNetwork {
int updateFrom = 0;
for (RedstoneWireUpdate wireUpdate : this.wireUpdates) {
if (wireUpdate.canSkipWireUpdate()) {
if (wireUpdate.canSkipWireUpdate() && redstoneImplementation != WorldConfiguration.Misc.RedstoneImplementation.VANILLA) {
updateFrom = wireUpdate.getUpdateIndex();
continue;
}

View File

@@ -56,7 +56,7 @@ public final class RedstoneWireCache {
if (network != null) {
try {
this.updatingNetwork = network;
return network.applyFromCache(this.level);
return network.applyFromCache(this.level, localConfig.redstoneImplementation);
} finally {
this.updatingNetwork = null;
}