mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Update mcp mappings to 20170611
This commit is contained in:
1 parent
864b05074e
commit
3d322ef925
48 files changed
+213
-211
No files matched your search
@@ -48,7 +48,7 @@ public class PlayerDropsEvent extends LivingDropsEvent
|
||||
*/
|
||||
public PlayerDropsEvent(EntityPlayer entity, DamageSource source, List<EntityItem> drops, boolean recentlyHit)
|
||||
{
|
||||
super(entity, source, drops, ForgeHooks.getLootingLevel(entity, source.getEntity(), source), recentlyHit);
|
||||
super(entity, source, drops, ForgeHooks.getLootingLevel(entity, source.getTrueSource(), source), recentlyHit);
|
||||
|
||||
this.entityPlayer = entity;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class DeferredBiomeDecorator extends BiomeDecorator {
|
||||
{
|
||||
fireCreateEventAndReplace(biome);
|
||||
// On first call to decorate, we fire and substitute ourselves, if we haven't already done so
|
||||
biome.theBiomeDecorator.decorate(par1World, par2Random, biome, pos);
|
||||
biome.decorator.decorate(par1World, par2Random, biome, pos);
|
||||
}
|
||||
public void fireCreateEventAndReplace(Biome biome)
|
||||
{
|
||||
@@ -49,17 +49,17 @@ public class DeferredBiomeDecorator extends BiomeDecorator {
|
||||
wrapped.clayPerChunk = clayPerChunk;
|
||||
wrapped.deadBushPerChunk = deadBushPerChunk;
|
||||
wrapped.flowersPerChunk = flowersPerChunk;
|
||||
wrapped.generateLakes = generateLakes;
|
||||
wrapped.generateFalls = generateFalls;
|
||||
wrapped.grassPerChunk = grassPerChunk;
|
||||
wrapped.mushroomsPerChunk = mushroomsPerChunk;
|
||||
wrapped.reedsPerChunk = reedsPerChunk;
|
||||
wrapped.sandPerChunk = sandPerChunk;
|
||||
wrapped.sandPerChunk2 = sandPerChunk2;
|
||||
wrapped.gravelPatchesPerChunk = gravelPatchesPerChunk;
|
||||
wrapped.sandPatchesPerChunk = sandPatchesPerChunk;
|
||||
wrapped.treesPerChunk = treesPerChunk;
|
||||
wrapped.waterlilyPerChunk = waterlilyPerChunk;
|
||||
|
||||
BiomeEvent.CreateDecorator event = new BiomeEvent.CreateDecorator(biome, wrapped);
|
||||
MinecraftForge.TERRAIN_GEN_BUS.post(event);
|
||||
biome.theBiomeDecorator = event.getNewBiomeDecorator();
|
||||
biome.decorator = event.getNewBiomeDecorator();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user