Skip to content

Commit

Permalink
Remove patchItemSave
Browse files Browse the repository at this point in the history
  • Loading branch information
samolego committed Dec 27, 2021
1 parent 354e9bf commit abe2ca3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 50 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
minecraft_version=1.18
yarn_mappings=1.18+build.1
loader_version=0.12.8
minecraft_version=1.18.1
yarn_mappings=1.18.1+build.12
loader_version=0.12.12

#Fabric api
fabric_version=0.44.0+1.18
fabric_version=0.45.0+1.18

# Mod Properties
mod_version = 0.4.3
mod_version = 0.4.4
maven_group = org.samo_lego
archives_base_name = golfiv

This file was deleted.

14 changes: 8 additions & 6 deletions src/main/java/org/samo_lego/golfiv/storage/GolfConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.annotations.SerializedName;

import java.io.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -171,10 +177,6 @@ public static class Duplication {
public final String _comment_patchDeathDuplication1 = "// Checks if player is connected before applying damage.";
public final String _comment_patchDeathDuplication2 = "// Prevents duplicating inventory if player dies after disconnect.";
public boolean patchDeathDuplication = true;

@SerializedName("// Whether to set item stack size to 0 after writing it on disk.")
public final String _comment_patchItemSave = "";
public boolean patchItemSave = true;
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/golfiv.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"accessors.PlaySoundS2CPacketAccessor",
"accessors.ScreenHandlerSlotUpdateS2CPacketAccessor",
"duplication.FallingBlockEntityMixin_GravityBlockDupe",
"duplication.ItemStackMixin_SavePatch",
"duplication.ServerPlayerEntityMixin_NoConnectionDeath",
"duplication.StringTagMixin_StringWriteLimit",
"illegal_actions.ServerPlayerEntityMixin_InventoryClose",
Expand Down

0 comments on commit abe2ca3

Please sign in to comment.