locale fix
This commit is contained in:
parent
8be702b3aa
commit
c527989ada
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue