mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
Major things to note: Class renames: https://gist.github.com/LexManos/44dd211f90f498ad4015279b103dff86 Tile Entities are now packed in the ChunkData packet. Forge intends to work around this to better support large moded worlds, but for the time being modders should implement the new function carefully and only send what data they need to! Minecraft's codebase now has annotations, these are directly from Mojang and should be adheared to! Added support for package-info.java's containing @Nullable information for all MC code base.
20 lines
852 B
Diff
20 lines
852 B
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockMobSpawner.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockMobSpawner.java
|
|
@@ -41,10 +41,14 @@
|
|
public void func_180653_a(World p_180653_1_, BlockPos p_180653_2_, IBlockState p_180653_3_, float p_180653_4_, int p_180653_5_)
|
|
{
|
|
super.func_180653_a(p_180653_1_, p_180653_2_, p_180653_3_, p_180653_4_, p_180653_5_);
|
|
- int i = 15 + p_180653_1_.field_73012_v.nextInt(15) + p_180653_1_.field_73012_v.nextInt(15);
|
|
- this.func_180637_b(p_180653_1_, p_180653_2_, i);
|
|
}
|
|
|
|
+ @Override
|
|
+ public int getExpDrop(IBlockState state, net.minecraft.world.IBlockAccess world, BlockPos pos, int fortune)
|
|
+ {
|
|
+ return 15 + RANDOM.nextInt(15) + RANDOM.nextInt(15);
|
|
+ }
|
|
+
|
|
public boolean func_149662_c(IBlockState p_149662_1_)
|
|
{
|
|
return false;
|