Update patches for Gradle's rename rewrite: MinecraftForge/ForgeGradle@19e7acf2a2

This commit is contained in:
Lex Manos 2013-12-18 04:01:37 -08:00
parent 58fc22e6b4
commit 78f822e51c
7 changed files with 51 additions and 55 deletions

View file

@ -28,15 +28,7 @@
this.field_71446_o = new TextureManager(this.field_110451_am); this.field_71446_o = new TextureManager(this.field_110451_am);
this.field_110451_am.func_110542_a(this.field_71446_o); this.field_110451_am.func_110542_a(this.field_71446_o);
this.field_147127_av = new SoundHandler(this.field_110451_am, this.field_71474_y); this.field_147127_av = new SoundHandler(this.field_110451_am, this.field_71474_y);
@@ -457,6 +462,7 @@ @@ -508,6 +513,7 @@
this.func_71357_I();
this.field_71466_p = new FontRenderer(this.field_71474_y, new ResourceLocation("textures/font/ascii.png"), this.field_71446_o, false);
+
if (this.field_71474_y.field_74363_ab != null)
{
this.field_71466_p.func_78264_a(this.field_135017_as.func_135042_a() || this.field_71474_y.field_151455_aw);
@@ -508,6 +514,7 @@
this.field_71446_o.func_130088_a(TextureMap.field_110576_c, new TextureMap(1, "textures/items")); this.field_71446_o.func_130088_a(TextureMap.field_110576_c, new TextureMap(1, "textures/items"));
GL11.glViewport(0, 0, this.field_71443_c, this.field_71440_d); GL11.glViewport(0, 0, this.field_71443_c, this.field_71440_d);
this.field_71452_i = new EffectRenderer(this.field_71441_e, this.field_71446_o); this.field_71452_i = new EffectRenderer(this.field_71441_e, this.field_71446_o);
@ -44,7 +36,7 @@
this.func_71361_d("Post startup"); this.func_71361_d("Post startup");
this.field_71456_v = new GuiIngame(this); this.field_71456_v = new GuiIngame(this);
@@ -527,6 +534,7 @@ @@ -527,6 +533,7 @@
this.func_71352_k(); this.func_71352_k();
} }
@ -52,7 +44,7 @@
Display.setVSyncEnabled(this.field_71474_y.field_74352_v); Display.setVSyncEnabled(this.field_71474_y.field_74352_v);
} }
@@ -915,9 +923,11 @@ @@ -916,9 +923,11 @@
if (!this.field_71454_w) if (!this.field_71454_w)
{ {
@ -64,7 +56,7 @@
} }
GL11.glFlush(); GL11.glFlush();
@@ -1495,6 +1505,8 @@ @@ -1496,6 +1505,8 @@
--this.field_71467_ac; --this.field_71467_ac;
} }
@ -73,7 +65,7 @@
this.field_71424_I.func_76320_a("gui"); this.field_71424_I.func_76320_a("gui");
if (!this.field_71445_n) if (!this.field_71445_n)
@@ -1645,6 +1657,7 @@ @@ -1646,6 +1657,7 @@
this.field_71462_r.func_146274_d(); this.field_71462_r.func_146274_d();
} }
} }
@ -81,7 +73,7 @@
} }
if (this.field_71429_W > 0) if (this.field_71429_W > 0)
@@ -1786,6 +1799,7 @@ @@ -1787,6 +1799,7 @@
} }
} }
} }
@ -89,7 +81,7 @@
} }
} }
@@ -1977,6 +1991,8 @@ @@ -1978,6 +1991,8 @@
this.field_71453_ak.func_74428_b(); this.field_71453_ak.func_74428_b();
} }

View file

@ -8,14 +8,14 @@
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
import java.awt.Color; import java.awt.Color;
@@ -312,6 +313,11 @@ @@ -312,6 +313,11 @@
this.func_73731_b(fontrenderer, s2, k - fontrenderer.func_78256_a(s2) - 2, 2, 14737632); this.func_73731_b(fontrenderer, s, k - fontrenderer.func_78256_a(s) - 2, 2, 14737632);
s2 = "Allocated memory: " + i4 * 100L / l3 + "% (" + i4 / 1024L / 1024L + "MB)"; s = "Allocated memory: " + k5 * 100L / i5 + "% (" + k5 / 1024L / 1024L + "MB)";
this.func_73731_b(fontrenderer, s2, k - fontrenderer.func_78256_a(s2) - 2, 12, 14737632); this.func_73731_b(fontrenderer, s, k - fontrenderer.func_78256_a(s) - 2, 12, 14737632);
+ int offset = 22; + int offset = 22;
+ for (String brd : FMLCommonHandler.instance().getBrandings(false)) + for (String brd : FMLCommonHandler.instance().getBrandings(false))
+ { + {
+ this.func_73731_b(fontrenderer, brd, k - fontrenderer.func_78256_a(brd) - 2, offset+=10, 14737632); + this.func_73731_b(fontrenderer, brd, k - fontrenderer.func_78256_a(brd) - 2, offset+=10, 14737632);
+ } + }
k3 = MathHelper.func_76128_c(this.field_73839_d.field_71439_g.field_70165_t); j3 = MathHelper.func_76128_c(this.field_73839_d.field_71439_g.field_70165_t);
j3 = MathHelper.func_76128_c(this.field_73839_d.field_71439_g.field_70163_u); k3 = MathHelper.func_76128_c(this.field_73839_d.field_71439_g.field_70163_u);
int l4 = MathHelper.func_76128_c(this.field_73839_d.field_71439_g.field_70161_v); int l3 = MathHelper.func_76128_c(this.field_73839_d.field_71439_g.field_70161_v);

View file

@ -12,7 +12,7 @@
MerchantRecipeList merchantrecipelist; MerchantRecipeList merchantrecipelist;
merchantrecipelist = new MerchantRecipeList(); merchantrecipelist = new MerchantRecipeList();
+ VillagerRegistry.manageVillagerTrades(merchantrecipelist, this, this.func_70946_n(), this.field_70146_Z); + VillagerRegistry.manageVillagerTrades(merchantrecipelist, this, this.func_70946_n(), this.field_70146_Z);
int j; int k;
label50: label50:
@@ -626,7 +628,7 @@ @@ -626,7 +628,7 @@

View file

@ -9,18 +9,15 @@
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
@@ -381,7 +383,10 @@ @@ -385,6 +387,7 @@
{ {
if (this.func_71197_b()) if (this.func_71197_b())
{ {
+ FMLCommonHandler.instance().handleServerStarted(); + FMLCommonHandler.instance().handleServerStarted();
+
long i = func_130071_aq(); long i = func_130071_aq();
+ long l = 0L;
long j = 0L;
this.field_147147_p.func_151315_a(new ChatComponentText(this.field_71286_C)); this.field_147147_p.func_151315_a(new ChatComponentText(this.field_71286_C));
this.field_147147_p.func_151321_a(new ServerStatusResponse.MinecraftProtocolVersionIdentifier("1.7.2", 4)); @@ -429,6 +432,7 @@
@@ -425,6 +430,7 @@
Thread.sleep(1L); Thread.sleep(1L);
this.field_71296_Q = true; this.field_71296_Q = true;
} }
@ -28,7 +25,7 @@
} }
else else
{ {
@@ -462,6 +468,10 @@ @@ -466,6 +470,10 @@
{ {
try try
{ {
@ -39,7 +36,7 @@
this.func_71260_j(); this.func_71260_j();
this.field_71316_v = true; this.field_71316_v = true;
} }
@@ -471,6 +481,8 @@ @@ -475,6 +483,8 @@
} }
finally finally
{ {
@ -48,7 +45,7 @@
this.func_71240_o(); this.func_71240_o();
} }
} }
@@ -513,6 +525,7 @@ @@ -517,6 +527,7 @@
{ {
long i = System.nanoTime(); long i = System.nanoTime();
AxisAlignedBB.func_72332_a().func_72298_a(); AxisAlignedBB.func_72332_a().func_72298_a();
@ -56,7 +53,7 @@
++this.field_71315_w; ++this.field_71315_w;
if (this.field_71295_T) if (this.field_71295_T)
@@ -566,6 +579,7 @@ @@ -570,6 +581,7 @@
this.field_71304_b.func_76319_b(); this.field_71304_b.func_76319_b();
this.field_71304_b.func_76319_b(); this.field_71304_b.func_76319_b();
@ -64,7 +61,7 @@
} }
public void func_71190_q() public void func_71190_q()
@@ -593,6 +607,7 @@ @@ -597,6 +609,7 @@
} }
this.field_71304_b.func_76320_a("tick"); this.field_71304_b.func_76320_a("tick");
@ -72,7 +69,7 @@
CrashReport crashreport; CrashReport crashreport;
try try
@@ -617,6 +632,7 @@ @@ -621,6 +634,7 @@
throw new ReportedException(crashreport); throw new ReportedException(crashreport);
} }
@ -80,7 +77,7 @@
this.field_71304_b.func_76319_b(); this.field_71304_b.func_76319_b();
this.field_71304_b.func_76320_a("tracker"); this.field_71304_b.func_76320_a("tracker");
worldserver.func_73039_n().func_72788_a(); worldserver.func_73039_n().func_72788_a();
@@ -695,7 +711,7 @@ @@ -699,7 +713,7 @@
public String getServerModName() public String getServerModName()
{ {

View file

@ -31,7 +31,7 @@
this.field_71340_o.func_73667_a("max-build-height", Integer.valueOf(this.func_71207_Z())); this.field_71340_o.func_73667_a("max-build-height", Integer.valueOf(this.func_71207_Z()));
+ if (!FMLCommonHandler.instance().handleServerAboutToStart(this)) { return false; } + if (!FMLCommonHandler.instance().handleServerAboutToStart(this)) { return false; }
field_155771_h.info("Preparing level \"" + this.func_71270_I() + "\""); field_155771_h.info("Preparing level \"" + this.func_71270_I() + "\"");
this.func_71247_a(this.func_71270_I(), this.func_71270_I(), k, worldtype, s3); this.func_71247_a(this.func_71270_I(), this.func_71270_I(), k, worldtype, s2);
long i1 = System.nanoTime() - j; long i1 = System.nanoTime() - j;
@@ -245,7 +251,7 @@ @@ -245,7 +251,7 @@
this.field_71339_n.func_72602_a(); this.field_71339_n.func_72602_a();

View file

@ -23,18 +23,18 @@
{ {
private static final Logger field_151505_a = LogManager.getLogger(); private static final Logger field_151505_a = LogManager.getLogger();
@@ -260,11 +265,20 @@ @@ -260,11 +265,20 @@
Entity entity = (Entity)iterator.next(); Entity entity = (Entity)iterator1.next();
nbttagcompound1 = new NBTTagCompound(); nbttagcompound1 = new NBTTagCompound();
- if (entity.func_70039_c(nbttagcompound1)) - if (entity.func_70039_c(nbttagcompound1))
+ try + try
{ {
- p_75820_1_.field_76644_m = true; - p_75820_1_.field_76644_m = true;
- nbttaglist1.func_74742_a(nbttagcompound1); - nbttaglist2.func_74742_a(nbttagcompound1);
+ if (entity.func_70039_c(nbttagcompound1)) + if (entity.func_70039_c(nbttagcompound1))
+ { + {
+ p_75820_1_.field_76644_m = true; + p_75820_1_.field_76644_m = true;
+ nbttaglist1.func_74742_a(nbttagcompound1); + nbttaglist2.func_74742_a(nbttagcompound1);
+ } + }
} }
+ catch (Exception e) + catch (Exception e)
@ -48,11 +48,11 @@
@@ -276,8 +290,16 @@ @@ -276,8 +290,16 @@
{ {
TileEntity tileentity = (TileEntity)iterator.next(); TileEntity tileentity = (TileEntity)iterator1.next();
nbttagcompound1 = new NBTTagCompound(); nbttagcompound1 = new NBTTagCompound();
+ try { + try {
tileentity.func_145841_b(nbttagcompound1); tileentity.func_145841_b(nbttagcompound1);
nbttaglist2.func_74742_a(nbttagcompound1); nbttaglist3.func_74742_a(nbttagcompound1);
+ } + }
+ catch (Exception e) + catch (Exception e)
+ { + {
@ -62,4 +62,4 @@
+ } + }
} }
p_75820_3_.func_74782_a("TileEntities", nbttaglist2); p_75820_3_.func_74782_a("TileEntities", nbttaglist3);

View file

@ -24,6 +24,24 @@
- return new WorldInfo(nbttagcompound1); - return new WorldInfo(nbttagcompound1);
+ worldInfo = new WorldInfo(nbttagcompound1); + worldInfo = new WorldInfo(nbttagcompound1);
+ FMLCommonHandler.instance().handleWorldDataLoad(this, worldInfo, nbttagcompound); + FMLCommonHandler.instance().handleWorldDataLoad(this, worldInfo, nbttagcompound);
+ return worldInfo;
}
catch (Exception exception1)
{
+ if (FMLCommonHandler.instance().shouldServerBeKilledQuietly())
+ {
+ throw (RuntimeException)exception1;
+ }
exception1.printStackTrace();
}
}
@@ -129,10 +139,16 @@
{
nbttagcompound = CompressedStreamTools.func_74796_a(new FileInputStream(file1));
nbttagcompound1 = nbttagcompound.func_74775_l("Data");
- return new WorldInfo(nbttagcompound1);
+ worldInfo = new WorldInfo(nbttagcompound1);
+ FMLCommonHandler.instance().handleWorldDataLoad(this, worldInfo, nbttagcompound);
+ return worldInfo; + return worldInfo;
} }
catch (Exception exception) catch (Exception exception)
@ -35,18 +53,7 @@
exception.printStackTrace(); exception.printStackTrace();
} }
} }
@@ -129,7 +139,9 @@ @@ -146,6 +162,8 @@
{
nbttagcompound = CompressedStreamTools.func_74796_a(new FileInputStream(file1));
nbttagcompound1 = nbttagcompound.func_74775_l("Data");
- return new WorldInfo(nbttagcompound1);
+ worldInfo = new WorldInfo(nbttagcompound1);
+ FMLCommonHandler.instance().handleWorldDataLoad(this, worldInfo, nbttagcompound);
+ return worldInfo;
}
catch (Exception exception1)
{
@@ -146,6 +158,8 @@
NBTTagCompound nbttagcompound2 = new NBTTagCompound(); NBTTagCompound nbttagcompound2 = new NBTTagCompound();
nbttagcompound2.func_74782_a("Data", nbttagcompound1); nbttagcompound2.func_74782_a("Data", nbttagcompound1);
@ -55,7 +62,7 @@
try try
{ {
File file1 = new File(this.field_75770_b, "level.dat_new"); File file1 = new File(this.field_75770_b, "level.dat_new");
@@ -184,6 +198,8 @@ @@ -184,6 +202,8 @@
NBTTagCompound nbttagcompound1 = new NBTTagCompound(); NBTTagCompound nbttagcompound1 = new NBTTagCompound();
nbttagcompound1.func_74782_a("Data", nbttagcompound); nbttagcompound1.func_74782_a("Data", nbttagcompound);