Skip to content

Commit

Permalink
v2.0.1: Fix missing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
0KepOnline committed Jun 18, 2024
1 parent 9c3e3c2 commit 3851796
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 77 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mapping_version=1.19
mod_id=nbtexporter
mod_name=NBT Exporter
mod_license=EPL-2.0 (https://www.eclipse.org/legal/epl-2.0/)
mod_version=2.0
mod_version=2.0.1
mod_group_id=net.scenariopla.nbtexporter
mod_authors=ScenarioPlanet
mod_description=Export any items as NBT files!
2 changes: 1 addition & 1 deletion src/main/java/net/scenariopla/nbtexporter/NBTExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class NBTExporter {
public static class Reference {
public static final String MOD_ID = "nbtexporter";
public static final String NAME = "NBT Exporter";
public static final String VERSION = "2.0";
public static final String VERSION = "2.0.1";

public static final String MOD_DIRECTORY = MOD_ID;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

import net.minecraft.commands.CommandSourceStack;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.NbtIo;
import net.minecraft.network.chat.ClickEvent;
import net.minecraft.network.chat.Component;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;

import net.scenariopla.nbtexporter.NBTExporter;
import net.scenariopla.nbtexporter.NBTExporter.Reference;
import net.scenariopla.nbtexporter.util.NBTFileWriter;
import static net.scenariopla.nbtexporter.command.NBTExporterCommandExceptions.ExceptionCollection;
import static net.scenariopla.nbtexporter.command.NBTExporterCommandExceptions.exception;

Expand Down Expand Up @@ -134,7 +134,7 @@ protected static File writeToFile(File file,
ByteArrayOutputStream byteArrayOutputStream = null;
try {
byteArrayOutputStream = new ByteArrayOutputStream();
NBTFileWriter.writeCompoundGZIP(tag, byteArrayOutputStream);
NbtIo.writeCompressed(tag, byteArrayOutputStream);
return writeToFile(file, byteArrayOutputStream.toByteArray());
} catch (IOException e) {
e.printStackTrace();
Expand Down
73 changes: 0 additions & 73 deletions src/main/java/net/scenariopla/nbtexporter/util/NBTFileWriter.java

This file was deleted.

0 comments on commit 3851796

Please sign in to comment.