Make sure we are checking blacklist on proper event so an initial packet is sent out to client in MP.

This commit is contained in:
Dave Smith committed 2019-03-13 12:06:53 -06:00
1 parent 68fae3e958
commit 9b675b80c9
1 file changed
+8 -3
@@ -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