Better mod crash logs

This commit is contained in:
Anuken
2019-10-11 16:08:14 -04:00
parent b927c2df1a
commit 4e0d1b2746
7 changed files with 87 additions and 21 deletions
@@ -1,5 +1,6 @@
package io.anuke.mindustry.game;
import io.anuke.arc.files.*;
import io.anuke.arc.util.ArcAnnotate.*;
import io.anuke.mindustry.*;
import io.anuke.mindustry.mod.Mods.*;
@@ -11,6 +12,8 @@ public abstract class Content implements Comparable<Content>{
public final short id;
/** The mod that loaded this piece of content. */
public @Nullable LoadedMod mod;
/** File that this content was loaded from. */
public @Nullable FileHandle sourceFile;
public Content(){
this.id = (short)Vars.content.getBy(getContentType()).size;