From 9b675b80c9fac684c9e4aa2b4e941d2464d81a93 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Wed, 13 Mar 2019 12:06:19 -0600 Subject: [PATCH] Make sure we are checking blacklist on proper event so an initial packet is sent out to client in MP. --- .../common/tile/TileEntityWindGenerator.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/mekanism/generators/common/tile/TileEntityWindGenerator.java b/src/main/java/mekanism/generators/common/tile/TileEntityWindGenerator.java index d4171b91c..51a2b4030 100644 --- a/src/main/java/mekanism/generators/common/tile/TileEntityWindGenerator.java +++ b/src/main/java/mekanism/generators/common/tile/TileEntityWindGenerator.java @@ -30,11 +30,16 @@ public class TileEntityWindGenerator extends TileEntityGenerator implements IBou } @Override - public void onChunkLoad() { - super.onChunkLoad(); + public void onLoad() { + super.onLoad(); - // Check the blacklist + // Check the blacklist and force an update if we're in the blacklist. Otherwise, we'll never send + // an initial activity status and the client (in MP) will show the windmills turning while not + // generating any power isBlacklistDimension = generators.windGenerationDimBlacklist.contains(world.provider.getDimension()); + if (isBlacklistDimension) { + setActive(false); + } } @Override