Reworking mysterious error message
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
684ed70219
Commit
0971c7d58d
@ -59,8 +59,7 @@ public class TechHider_14 {
|
|||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
for(int i = nmsTags.size() - 1; i >= 0; i--){
|
for(int i = nmsTags.size() - 1; i >= 0; i--){
|
||||||
NbtBase<?> nbtBase = nmsTags.get(i);
|
NbtBase<?> nbtBase = nmsTags.get(i);
|
||||||
if(!(nbtBase instanceof NbtCompound))
|
assert nbtBase instanceof NbtCompound;
|
||||||
throw new SecurityException("Hä?" + nbtBase.getClass().getName());
|
|
||||||
NbtCompound nbt = (NbtCompound) nbtBase;
|
NbtCompound nbt = (NbtCompound) nbtBase;
|
||||||
if(Config.HiddenBlockEntities.contains(nbt.getString("id"))){
|
if(Config.HiddenBlockEntities.contains(nbt.getString("id"))){
|
||||||
nmsTags.remove(i);
|
nmsTags.remove(i);
|
||||||
|
@ -59,8 +59,7 @@ public class TechHider_15 {
|
|||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
for(int i = nmsTags.size() - 1; i >= 0; i--){
|
for(int i = nmsTags.size() - 1; i >= 0; i--){
|
||||||
NbtBase<?> nbtBase = nmsTags.get(i);
|
NbtBase<?> nbtBase = nmsTags.get(i);
|
||||||
if(!(nbtBase instanceof NbtCompound))
|
assert nbtBase instanceof NbtCompound;
|
||||||
throw new SecurityException("Hä?" + nbtBase.getClass().getName());
|
|
||||||
NbtCompound nbt = (NbtCompound) nbtBase;
|
NbtCompound nbt = (NbtCompound) nbtBase;
|
||||||
if(Config.HiddenBlockEntities.contains(nbt.getString("id"))){
|
if(Config.HiddenBlockEntities.contains(nbt.getString("id"))){
|
||||||
nmsTags.remove(i);
|
nmsTags.remove(i);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren