mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 15:33:18 +00:00
First push of some small patches and introduction of basic events. As well as the first cases for Forge's Access Transformer
This commit is contained in:
1 parent
5672b783da
commit
1fb042621c
29 files changed
+1904
-170
No files matched your search
@@ -0,0 +1,28 @@
|
||||
--- ../src_base/common/net/minecraft/src/AnvilChunkLoader.java
|
||||
+++ ../src_work/common/net/minecraft/src/AnvilChunkLoader.java
|
||||
@@ -10,6 +10,9 @@
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
+import net.minecraftforge.common.MinecraftForge;
|
||||
+import net.minecraftforge.event.world.ChunkDataEvent;
|
||||
+
|
||||
public class AnvilChunkLoader implements IThreadedFileIO, IChunkLoader
|
||||
{
|
||||
private List chunksToRemove = new ArrayList();
|
||||
@@ -94,6 +97,7 @@
|
||||
var5 = this.readChunkFromNBT(par1World, par4NBTTagCompound.getCompoundTag("Level"));
|
||||
}
|
||||
|
||||
+ MinecraftForge.eventBus.post(new ChunkDataEvent.Load(var5, par4NBTTagCompound));
|
||||
return var5;
|
||||
}
|
||||
}
|
||||
@@ -109,6 +113,7 @@
|
||||
var3.setTag("Level", var4);
|
||||
this.writeChunkToNBT(par2Chunk, par1World, var4);
|
||||
this.func_75824_a(par2Chunk.getChunkCoordIntPair(), var3);
|
||||
+ MinecraftForge.eventBus.post(new ChunkDataEvent.Save(par2Chunk, var3));
|
||||
}
|
||||
catch (Exception var5)
|
||||
{
|
||||
Reference in new issue
Block a user