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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user