Allow getRedstoneOutput to be called from worker thread directly.

This commit is contained in:
Florian Nücke
2020-12-29 18:06:52 +01:00
parent d5e6afcaf7
commit 8c7c314403

View File

@@ -86,7 +86,7 @@ public class RedstoneInterfaceTileEntity extends TileEntity implements NamedDevi
return world.getRedstonePower(neighborPos, direction);
}
@Callback(name = GET_REDSTONE_OUTPUT)
@Callback(name = GET_REDSTONE_OUTPUT, synchronize = false)
public int getRedstoneOutput(@Parameter(SIDE) final int side) {
if (side < 0 || side > 3) {
throw new IllegalArgumentException("invalid side");