Skip to content

Commit c3caf6a

Browse files
author
eaglercraft
committed
u46
1 parent a04cff9 commit c3caf6a

File tree

18 files changed

+100
-25
lines changed

18 files changed

+100
-25
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
u44
1+
u46

desktopRuntime/resources/assets/eagler/glsl/core.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void main() {
162162

163163
#ifdef COMPILE_ENABLE_MC_LIGHTING
164164
#ifdef COMPILE_NORMAL_ATTRIB
165-
vec3 normal = normalize(v_normal3f);
165+
vec3 normal = v_normal3f;
166166
#else
167167
vec3 normal = u_uniformNormal3f;
168168
#endif

desktopRuntime/resources/assets/eagler/glsl/deferred/deferred_core_gbuffer.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void main() {
104104

105105
vec3 normal;
106106
#ifdef COMPILE_NORMAL_ATTRIB
107-
normal = normalize(v_normal3f);
107+
normal = v_normal3f;
108108
#else
109109
normal = u_uniformNormal3f;
110110
#endif

desktopRuntime/resources/assets/eagler/glsl/deferred/forward_core.fsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ void main() {
206206
#endif
207207

208208
#ifdef COMPILE_NORMAL_ATTRIB
209-
normalVector3f = normalize(v_normal3f);
210-
block1f = v_block1f;
209+
normalVector3f = v_normal3f;
210+
block1f = round(v_block1f);
211211
#else
212212
normalVector3f = u_uniformNormal3f;
213213
block1f = u_blockConstant1f;

desktopRuntime/resources/assets/eagler/glsl/deferred/realistic_water_render.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void main() {
199199
#endif
200200

201201
#ifdef COMPILE_NORMAL_ATTRIB
202-
normalVector3f = normalize(v_normal3f);
202+
normalVector3f = v_normal3f;
203203
block1f = round(v_block1f);
204204
#else
205205
normalVector3f = u_uniformNormal3f;

desktopRuntime/resources/assets/eagler/glsl/dynamiclights/core_dynamiclights.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void main() {
146146
#endif
147147

148148
#ifdef COMPILE_NORMAL_ATTRIB
149-
vec3 normal = normalize(v_normal3f);
149+
vec3 normal = v_normal3f;
150150
#else
151151
vec3 normal = u_uniformNormal3f;
152152
#endif

src/game/java/net/minecraft/client/gui/GuiIngame.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,12 +1102,16 @@ private void drawEaglerInteractButton(ScaledResolution parScaledResolution) {
11021102
&& touchVPosX < interactButtonX + interactButtonW && touchVPosY < interactButtonY + interactButtonH;
11031103
float f = MathHelper.clamp_float(mc.gameSettings.touchControlOpacity, 0.0f, 1.0f);
11041104
if (f > 0.0f) {
1105+
if (f < 1.0f)
1106+
GlStateManager.enableBlend();
11051107
GlStateManager.color(1.0f, 1.0f, 1.0f, f);
11061108
drawTexturedModalRect(xx, yy, 0, hover ? 216 : 236, 118, 20);
11071109
GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f);
11081110
drawCenteredString(mc.fontRendererObj, I18n.format("touch.interact.entity"),
11091111
parScaledResolution.getScaledWidth() / 2, yy + 6,
11101112
(hover ? 16777120 : 14737632) | ((int) (f * 255.0f) << 24));
1113+
if (f < 1.0f)
1114+
GlStateManager.disableBlend();
11111115
}
11121116
} else {
11131117
interactButtonX = -1;

src/lwjgl/java/net/lax1dude/eaglercraft/v1_8/sp/server/internal/ServerPlatformSingleplayer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,8 @@ public static void setCrashCallbackWASM(IWASMCrashCallback callback) {
9696

9797
}
9898

99+
public static boolean isTabAboutToCloseWASM() {
100+
return false;
101+
}
102+
99103
}

src/main/java/net/lax1dude/eaglercraft/v1_8/EaglercraftVersion.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class EaglercraftVersion {
1010
/// Customize these to fit your fork:
1111

1212
public static final String projectForkName = "EaglercraftX";
13-
public static final String projectForkVersion = "u45";
13+
public static final String projectForkVersion = "u46";
1414
public static final String projectForkVendor = "lax1dude";
1515

1616
public static final String projectForkURL = "https://gitlab.com/lax1dude/eaglercraftx-1.8";
@@ -20,20 +20,20 @@ public class EaglercraftVersion {
2020
public static final String projectOriginName = "EaglercraftX";
2121
public static final String projectOriginAuthor = "lax1dude";
2222
public static final String projectOriginRevision = "1.8";
23-
public static final String projectOriginVersion = "u45";
23+
public static final String projectOriginVersion = "u46";
2424

2525
public static final String projectOriginURL = "https://gitlab.com/lax1dude/eaglercraftx-1.8"; // rest in peace
2626

2727
// EPK Version Identifier
2828

29-
public static final String EPKVersionIdentifier = "u45"; // Set to null to disable EPK version check
29+
public static final String EPKVersionIdentifier = "u46"; // Set to null to disable EPK version check
3030

3131
// Updating configuration
3232

3333
public static final boolean enableUpdateService = true;
3434

3535
public static final String updateBundlePackageName = "net.lax1dude.eaglercraft.v1_8.client";
36-
public static final int updateBundlePackageVersionInt = 45;
36+
public static final int updateBundlePackageVersionInt = 46;
3737

3838
public static final String updateLatestLocalStorageKey = "latestUpdate_" + updateBundlePackageName;
3939

src/main/java/net/lax1dude/eaglercraft/v1_8/sp/server/EaglerIntegratedServerWorker.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ private static void processAsyncMessageQueue() {
8686
}
8787
}
8888
}
89+
if(ServerPlatformSingleplayer.isTabAboutToCloseWASM() && !isServerStopped()) {
90+
logger.info("Autosaving worlds because the tab is about to close!");
91+
currentProcess.getConfigurationManager().saveAllPlayerData();
92+
currentProcess.saveAllWorlds(false);
93+
}
8994
}
9095

9196
public static void tick() {

0 commit comments

Comments
 (0)