Compare commits

..

No commits in common. "b2fde9472554163bf515b79e429ca26518d9524a" and "a6719bab9c0f83592924ae97adcaa97d752197af" have entirely different histories.

14 changed files with 2509098 additions and 54914 deletions

View File

@ -40,7 +40,7 @@ def folder = "javascript"
def name = "classes.js"
teavm.js {
obfuscated = true
obfuscated = false
sourceMap = true
targetFileName = "../" + name
optimization = OptimizationLevel.AGGRESSIVE

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -518,7 +518,7 @@ public class VirtualFilesystem {
private static void readWholeFile(IDBDatabase db, String name, final AsyncCallback<ArrayBuffer> cb) {
IDBTransaction tx = db.transaction("filesystem", "readonly");
final IDBGetRequest r = tx.objectStore("filesystem").get(makeTheFuckingKeyWork(name)); // problem
final IDBGetRequest r = tx.objectStore("filesystem").get(makeTheFuckingKeyWork(name));
r.setOnSuccess(new EventHandler() {
@Override
public void handleEvent() {

View File

@ -53,7 +53,7 @@ public class WorkerListenThread {
}
public boolean closeChannel(String player) {
System.out.println("[Server][CLOSECHANNEL][" + player + "]"); // called way too damn much
System.out.println("[Server][CLOSECHANNEL][" + player + "]");
WorkerNetworkManager channel = channels.get(player);
if(channel == null) {
return false;
@ -83,7 +83,7 @@ public class WorkerListenThread {
List<NetHandler> conns = new ArrayList<>(this.connections);
for (NetHandler var2 : conns) {
var2.handlePackets(); // problem
var2.handlePackets();
}
deleteDeadConnections();

View File

@ -93,7 +93,7 @@ public class WorkerNetworkManager implements INetworkManager {
//System.out.println("[Server][" + ipcChannel + "]: packet '" + pkt.getClass().getSimpleName() + "' recieved");
try {
pkt.processPacket(theNetHandler); // This is a problem, it bitches with the error message below
pkt.processPacket(theNetHandler);
}catch(Throwable t) {
System.err.println("Could not process minecraft packet 0x" + Integer.toHexString(pkt.getPacketId()) + " class '" + pkt.getClass().getSimpleName() + "' on channel 'NET|" + ipcChannel + "'");
t.printStackTrace();

View File

@ -59,7 +59,7 @@ public class NetLoginHandler extends NetHandler {
if (this.loginTimer++ == 600) {
this.kickUser("Took too long to log in");
} else {
this.myTCPConnection.processReadPackets(); // problem
this.myTCPConnection.processReadPackets();
}
}

View File

@ -560,7 +560,7 @@ public class NetServerHandler extends NetHandler
try
{
this.netManager.addToSendQueue(par1Packet); // This is a problem
this.netManager.addToSendQueue(par1Packet);
}
catch (Exception var10)
{

View File

@ -75,7 +75,8 @@ public class GuiEnchantment extends GuiContainer
/**
* Draw the background layer for the GuiContainer (everything behind the items)
*/
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
{
EaglerAdapter.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
enchantingTableGuiTextures.bindTexture();
int var4 = (this.width - this.xSize) / 2;
@ -86,13 +87,13 @@ public class GuiEnchantment extends GuiContainer
EaglerAdapter.glPushMatrix();
EaglerAdapter.glLoadIdentity();
ScaledResolution var6 = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHeight);
EaglerAdapter.glViewport((var6.getScaledWidth() - 432) / 2 * var6.getScaleFactor(), (var6.getScaledHeight() - 182) / 2 * var6.getScaleFactor(), 320 * var6.getScaleFactor(), 240 * var6.getScaleFactor());
EaglerAdapter.glViewport((var6.getScaledWidth() - 320) / 2 * var6.getScaleFactor(), (var6.getScaledHeight() - 240) / 2 * var6.getScaleFactor(), 320 * var6.getScaleFactor(), 240 * var6.getScaleFactor());
EaglerAdapter.glTranslatef(-0.34F, 0.23F, 0.0F);
EaglerAdapter.gluPerspective(90.0F, 1.3333334F, 9.0F, 80.0F);
float var7 = 1.0F;
EaglerAdapter.glMatrixMode(EaglerAdapter.GL_MODELVIEW);
EaglerAdapter.glLoadIdentity();
RenderHelper.enableStandardItemLighting2();
RenderHelper.enableStandardItemLighting();
EaglerAdapter.glTranslatef(0.0F, 3.3F, -16.0F);
EaglerAdapter.glScalef(var7, var7, var7);
float var8 = 5.0F;
@ -106,27 +107,31 @@ public class GuiEnchantment extends GuiContainer
EaglerAdapter.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
float var10 = this.field_74212_q + (this.field_74213_p - this.field_74212_q) * par1 + 0.25F;
float var11 = this.field_74212_q + (this.field_74213_p - this.field_74212_q) * par1 + 0.75F;
var10 = (var10 - (float) MathHelper.truncateDoubleToInt((double) var10)) * 1.6F - 0.3F;
var11 = (var11 - (float) MathHelper.truncateDoubleToInt((double) var11)) * 1.6F - 0.3F;
var10 = (var10 - (float)MathHelper.truncateDoubleToInt((double)var10)) * 1.6F - 0.3F;
var11 = (var11 - (float)MathHelper.truncateDoubleToInt((double)var11)) * 1.6F - 0.3F;
if (var10 < 0.0F) {
if (var10 < 0.0F)
{
var10 = 0.0F;
}
if (var11 < 0.0F) {
if (var11 < 0.0F)
{
var11 = 0.0F;
}
if (var10 > 1.0F) {
if (var10 > 1.0F)
{
var10 = 1.0F;
}
if (var11 > 1.0F) {
if (var11 > 1.0F)
{
var11 = 1.0F;
}
EaglerAdapter.glEnable(EaglerAdapter.GL_RESCALE_NORMAL);
bookModel.render((Entity) null, 0.0F, var10, var11, var9, 0.0F, 0.0625F);
bookModel.render((Entity)null, 0.0F, var10, var11, var9, 0.0F, 0.0625F);
EaglerAdapter.glDisable(EaglerAdapter.GL_RESCALE_NORMAL);
RenderHelper.disableStandardItemLighting();
EaglerAdapter.glMatrixMode(EaglerAdapter.GL_PROJECTION);
@ -136,37 +141,46 @@ public class GuiEnchantment extends GuiContainer
EaglerAdapter.glPopMatrix();
RenderHelper.disableStandardItemLighting();
EaglerAdapter.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
enchantingTableBookTextures.bindTexture();
EnchantmentNameParts.instance.setRandSeed(this.containerEnchantment.nameSeed);
for (int var12 = 0; var12 < 3; ++var12) {
for (int var12 = 0; var12 < 3; ++var12)
{
String var13 = EnchantmentNameParts.instance.generateRandomEnchantName();
this.zLevel = 0.0F;
enchantingTableGuiTextures.bindTexture();
int var14 = this.containerEnchantment.enchantLevels[var12];
EaglerAdapter.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
if (var14 == 0) {
if (var14 == 0)
{
this.drawTexturedModalRect(var4 + 60, var5 + 14 + 19 * var12, 0, 185, 108, 19);
} else {
}
else
{
String var15 = "" + var14;
FontRenderer var16 = this.mc.standardGalacticFontRenderer;
int var17 = 6839882;
if (this.mc.thePlayer.experienceLevel < var14 && !this.mc.thePlayer.capabilities.isCreativeMode) {
if (this.mc.thePlayer.experienceLevel < var14 && !this.mc.thePlayer.capabilities.isCreativeMode)
{
this.drawTexturedModalRect(var4 + 60, var5 + 14 + 19 * var12, 0, 185, 108, 19);
var16.drawSplitString(var13, var4 + 62, var5 + 16 + 19 * var12, 104, (var17 & 16711422) >> 1);
var16 = this.mc.fontRenderer;
var17 = 4226832;
var16.drawStringWithShadow(var15, var4 + 62 + 104 - var16.getStringWidth(var15), var5 + 16 + 19 * var12 + 7, var17);
} else {
}
else
{
int var18 = par2 - (var4 + 60);
int var19 = par3 - (var5 + 14 + 19 * var12);
if (var18 >= 0 && var19 >= 0 && var18 < 108 && var19 < 19) {
if (var18 >= 0 && var19 >= 0 && var18 < 108 && var19 < 19)
{
this.drawTexturedModalRect(var4 + 60, var5 + 14 + 19 * var12, 0, 204, 108, 19);
var17 = 16777088;
} else {
}
else
{
this.drawTexturedModalRect(var4 + 60, var5 + 14 + 19 * var12, 0, 166, 108, 19);
}

View File

@ -140,7 +140,7 @@ public class GuiMainMenu extends GuiScreen {
StringTranslate var2 = StringTranslate.getInstance();
int var4 = this.height / 4 + 48;
if(EaglerAdapter.isIntegratedServerAvailable()) { // EaglerAdapter.isIntegratedServerAvailable()
if(false) { // EaglerAdapter.isIntegratedServerAvailable()
this.buttonList.add(new GuiButton(1, this.width / 2 - 100, var4, var2.translateKey("menu.singleplayer")));
this.buttonList.add(new GuiButton(2, this.width / 2 - 100, var4 + 24 * 1, var2.translateKey("menu.multiplayer")));
this.buttonList.add(new GuiButton(3, this.width / 2 - 100, var4 + 24 * 2, var2.translateKey("menu.forkme")));