Skip to content

Commit

Permalink
Update 1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox2Code committed Jun 10, 2023
1 parent 19961f4 commit 5d92677
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class MixinChunk {
@Shadow public short[] blocks;

@Inject(method = "setChunkData", at = @At("RETURN"))
public void onSetChunkData(byte[] data, int mix, int miy, int miz, int max, int may, int maz, int progress, CallbackInfoReturnable<Integer> cir) {
public void onSetChunkData(byte[] data, int mix, int miy, int miz, int max, int may, int maz, boolean init, int progress, CallbackInfoReturnable<Integer> cir) {
if (ClientModLoader.Internal.networkChunkBytes == data) {
for (int var17 = mix; var17 < max; ++var17) {
for (int var31 = miy; var31 < may; ++var31) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public void onHandleMultiBlockChange(Packet52MultiBlockChange packet52, Callback
}

@Redirect(method = "handleMapChunk", at = @At(value = "INVOKE", target =
"Lnet/minecraft/src/game/level/WorldClient;setChunkData(IIIIII[B)V"))
public void onSetChunkData(WorldClient instance, int mx, int my, int mz, int mxx, int mxy, int mxz, byte[] data) {
"Lnet/minecraft/src/game/level/WorldClient;setChunkData(IIIIIIZ[B)V"))
public void onSetChunkData(WorldClient instance, int mx, int my, int mz, int mxx, int mxy, int mxz, boolean init, byte[] data) {
ClientModLoader.Internal.networkChunkBytes = data;
try {
instance.setChunkData(mx, my, mz, mxx, mxy, mxz, data);
instance.setChunkData(mx, my, mz, mxx, mxy, mxz, init, data);
} finally {
ClientModLoader.Internal.networkChunkBytes = null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.fox2code.foxloader.launcher.ServerMain;
import com.fox2code.foxloader.launcher.utils.SourceUtil;

import java.awt.GraphicsEnvironment;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
Expand All @@ -20,6 +21,10 @@ public class Main {
static final String optJvmArgsWithMem = optJvmArgs + " -Xmn512M -Xms512M -Xmx2G";
static final File currentInstallerFile = SourceUtil.getSourceFile(Main.class);
public static void main(String[] args) throws ReflectiveOperationException, MalformedURLException {
if (args.length == 0 && GraphicsEnvironment.isHeadless()) {
ServerMain.main(args);
return;
}
boolean platform = false;
boolean update = false;
if (args.length >= 1) {
Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ org.gradle.parallel=true
org.gradle.jvmargs=-Xmx1024m -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8

# FoxLoader properties
foxloader.version=1.2.6
foxloader.version=1.2.7
foxloader.lastReIndevTransformerChanges=1.2.4

# ReIndev properties
reindev.clientUrl=https://cdn.fox2code.com/files/reindev_2.8.1_02.jar
reindev.serverUrl=https://cdn.fox2code.com/files/reindev281-02_server.jar
reindev.clientJar=reindev_2.8.1_02.jar
reindev.serverJar=reindev281-02_server.jar
reindev.version=2.8.1_2
reindev.version.allowFrom=2.8.1_1
reindev.clientUrl=https://cdn.fox2code.com/files/reindev_2.8.1_03.jar
reindev.serverUrl=https://cdn.fox2code.com/files/reindev281-03_server.jar
reindev.clientJar=reindev_2.8.1_03.jar
reindev.serverJar=reindev281-03_server.jar
reindev.version=2.8.1_3
reindev.version.allowFrom=2.8.1_2

#Spark properties
spark.dependency=maven.modrinth:spark:1.10.37-fabric
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
public abstract class MixinItemStack implements RegisteredItemStack {
@Shadow
public int stackSize;
@Shadow int itemDamage;
@Shadow
public int itemDamage;

@Shadow public abstract Item getItem();
@Shadow public abstract String getDisplayName();
Expand Down

0 comments on commit 5d92677

Please sign in to comment.