mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user