Merge part of PR #375 related to ChunkEvent.Load for the client side
This commit is contained in:
parent
2e1ea20952
commit
5ea2d49915
1 changed files with 19 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
--- ../src_base/minecraft/net/minecraft/client/multiplayer/ChunkProviderClient.java
|
||||
+++ ../src_work/minecraft/net/minecraft/client/multiplayer/ChunkProviderClient.java
|
||||
@@ -13,6 +13,8 @@
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
import net.minecraft.world.chunk.EmptyChunk;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
+import net.minecraftforge.common.MinecraftForge;
|
||||
+import net.minecraftforge.event.world.ChunkEvent;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class ChunkProviderClient implements IChunkProvider
|
||||
@@ -75,6 +77,7 @@
|
||||
{
|
||||
Chunk var3 = new Chunk(this.worldObj, par1, par2);
|
||||
this.chunkMapping.add(ChunkCoordIntPair.chunkXZ2Int(par1, par2), var3);
|
||||
+ MinecraftForge.EVENT_BUS.post(new ChunkEvent.Load(var3));
|
||||
var3.isChunkLoaded = true;
|
||||
return var3;
|
||||
}
|
Loading…
Reference in a new issue