locale fix

This commit is contained in:
Sen 2025-05-27 22:51:30 +02:00
parent 8be702b3aa
commit c527989ada
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
3 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ abstract class TagList<K extends Tag> extends Tag {
void read(DataInput input, int depth, SizeTracker tracker) throws IOException { void read(DataInput input, int depth, SizeTracker tracker) throws IOException {
tracker.read(36); tracker.read(36);
if(depth > 512) if(depth > 512)
throw new RuntimeException("Tried to read NBT tag with too high complexity, depth > 512"); throw new RuntimeException("Objekt ist zu komplex, die Tiefe ist größer als 512");
int len = input.readInt(); int len = input.readInt();
tracker.read(4 * len); tracker.read(4 * len);
this.list = new ArrayList<K>(len); this.list = new ArrayList<K>(len);

View file

@ -28,7 +28,7 @@ public class TagObject extends Tag {
void read(DataInput input, int depth, SizeTracker tracker) throws IOException { void read(DataInput input, int depth, SizeTracker tracker) throws IOException {
tracker.read(48); tracker.read(48);
if(depth > 512) if(depth > 512)
throw new RuntimeException("Tried to read NBT tag with too high complexity, depth > 512"); throw new RuntimeException("Objekt ist zu komplex, die Tiefe ist größer als 512");
this.tags.clear(); this.tags.clear();
byte id; byte id;
while((id = input.readByte()) != 0) { while((id = input.readByte()) != 0) {

View file

@ -13,7 +13,7 @@ class TagString extends Tag {
public TagString(String data) { public TagString(String data) {
if(data == null) if(data == null)
throw new IllegalArgumentException("null is not allowed"); throw new IllegalArgumentException("Eine Zeichenkette aus null ist nicht erlaubt");
this.data = data; this.data = data;
} }