diff options
| author | DoKM <54663875+DoKM@users.noreply.github.com> | 2021-07-25 19:20:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-25 19:20:10 +0200 |
| commit | 57a5639f6cfaed3dff8473ae7b59d59a89727fda (patch) | |
| tree | a8e4a0c84dc559be1925b230dc719423dd2a5ff1 /src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java | |
| parent | 7b79c6bb2f9b570c9c2c3f424f239c645dfe90d7 (diff) | |
| parent | a7dde6d4582ad1b2474b0f59c1c74dd70b654a98 (diff) | |
| download | notenoughupdates-57a5639f6cfaed3dff8473ae7b59d59a89727fda.tar.gz notenoughupdates-57a5639f6cfaed3dff8473ae7b59d59a89727fda.tar.bz2 notenoughupdates-57a5639f6cfaed3dff8473ae7b59d59a89727fda.zip | |
Merge pull request #12 from IRONM00N/pr
Move PR. to your fork
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java index 38925b77..967ef903 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java @@ -3,8 +3,6 @@ package io.github.moulberry.notenoughupdates; import com.google.common.collect.Lists; import com.google.gson.*; import io.github.moulberry.notenoughupdates.auction.APIManager; -import io.github.moulberry.notenoughupdates.miscfeatures.StorageManager; -import io.github.moulberry.notenoughupdates.miscgui.GuiItemCustomize; import io.github.moulberry.notenoughupdates.miscgui.GuiItemRecipe; import io.github.moulberry.notenoughupdates.util.Constants; import io.github.moulberry.notenoughupdates.util.HypixelApi; @@ -1170,32 +1168,6 @@ public class NEUManager { return true; } - public boolean uploadItemJson(String internalname, String itemid, String displayname, String[] lore, String crafttext, String infoType, String[] info, - String clickcommand, int damage, NBTTagCompound nbttag) { - JsonObject json = createItemJson(internalname, itemid, displayname, lore, crafttext, infoType, info, clickcommand, damage, nbttag); - if(json == null) { - return false; - } - - String username = Minecraft.getMinecraft().thePlayer.getName(); - String newBranchName = UUID.randomUUID().toString().substring(0, 8) + "-" + internalname + "-" + username; - String prTitle = internalname + "-" + username; - String prBody = "Internal name: " + internalname + "\nSubmitted by: " + username; - String file = "items/"+internalname+".json"; - /*if(!neuio.createNewRequest(newBranchName, prTitle, prBody, file, gson.toJson(json))) { - return false; - }*/ - - try { - writeJsonDefaultDir(json, internalname+".json"); - } catch(IOException e) { - return false; - } - - loadItem(internalname); - return true; - } - public void writeJson(JsonObject json, File file) throws IOException { file.createNewFile(); |
