From 8c7c3144036b847147be3953f6563ae1caeedc55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Tue, 29 Dec 2020 18:06:52 +0100 Subject: [PATCH] Allow getRedstoneOutput to be called from worker thread directly. --- .../oc2/common/block/entity/RedstoneInterfaceTileEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/li/cil/oc2/common/block/entity/RedstoneInterfaceTileEntity.java b/src/main/java/li/cil/oc2/common/block/entity/RedstoneInterfaceTileEntity.java index fbbe392d..42cae4c7 100644 --- a/src/main/java/li/cil/oc2/common/block/entity/RedstoneInterfaceTileEntity.java +++ b/src/main/java/li/cil/oc2/common/block/entity/RedstoneInterfaceTileEntity.java @@ -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");