@@ -1,4 +1,4 @@
|
||||
From 3f48cc87934a730f5d6423ce5cab4f167d399c63 Mon Sep 17 00:00:00 2001
|
||||
From 1b28776ff4559ef02b0e274969f236b70dfe381a Mon Sep 17 00:00:00 2001
|
||||
From: theosib <millerti@172.16.221.1>
|
||||
Date: Thu, 27 Sep 2018 01:43:35 -0600
|
||||
Subject: [PATCH] Optimize redstone algorithm
|
||||
@@ -1127,7 +1127,7 @@ index 5bf2fc0b3..52a4982ec 100644
|
||||
c(iblockdata, world, blockposition);
|
||||
world.a(blockposition, false);
|
||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||
index b6d904007..697c99d94 100644
|
||||
index eb8cadf5c..d62ef02e5 100644
|
||||
--- a/src/main/java/net/minecraft/server/World.java
|
||||
+++ b/src/main/java/net/minecraft/server/World.java
|
||||
@@ -543,6 +543,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
@@ -1138,7 +1138,7 @@ index b6d904007..697c99d94 100644
|
||||
public void a(BlockPosition blockposition, Block block, BlockPosition blockposition1) {
|
||||
if (!this.isClientSide) {
|
||||
IBlockData iblockdata = this.getType(blockposition);
|
||||
@@ -1298,6 +1299,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
@@ -1302,6 +1303,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||
return this.getBlockFacePower(blockposition.down(), EnumDirection.DOWN) > 0 ? true : (this.getBlockFacePower(blockposition.up(), EnumDirection.UP) > 0 ? true : (this.getBlockFacePower(blockposition.north(), EnumDirection.NORTH) > 0 ? true : (this.getBlockFacePower(blockposition.south(), EnumDirection.SOUTH) > 0 ? true : (this.getBlockFacePower(blockposition.west(), EnumDirection.WEST) > 0 ? true : this.getBlockFacePower(blockposition.east(), EnumDirection.EAST) > 0))));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user