Add another hook for RS Addons

This commit is contained in:
raoulvdberge
2017-10-01 16:17:02 +02:00
parent 37922ce867
commit 7572d3c0f3

View File

@@ -46,6 +46,10 @@ public abstract class BlockBase extends Block {
return RS.ID; return RS.ID;
} }
protected Object getModObject() {
return RS.INSTANCE;
}
@Override @Override
public String getUnlocalizedName() { public String getUnlocalizedName() {
return "block." + getDomain() + ":" + name; return "block." + getDomain() + ":" + name;
@@ -181,7 +185,7 @@ public abstract class BlockBase extends Block {
} }
} }
player.openGui(RS.INSTANCE, guiId, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(getModObject(), guiId, world, pos.getX(), pos.getY(), pos.getZ());
return true; return true;
} }