Search for modded payload factory blocks
This commit is contained in:
@@ -32,9 +32,18 @@ public class PayloadBlock extends Block{
|
||||
public void load(){
|
||||
super.load();
|
||||
|
||||
topRegion = Core.atlas.find(name + "-top", "factory-top-" + size + regionSuffix);
|
||||
outRegion = Core.atlas.find(name + "-out", "factory-out-" + size + regionSuffix);
|
||||
inRegion = Core.atlas.find(name + "-in", "factory-in-" + size + regionSuffix);
|
||||
topRegion = findFactoryRegion("-top");
|
||||
outRegion = findFactoryRegion("-out");
|
||||
inRegion = findFactoryRegion("-in");
|
||||
}
|
||||
|
||||
protected TextureRegion findFactoryRegion(String suf){
|
||||
TextureRegion region = Core.atlas.find(name + suf);
|
||||
|
||||
if(!region.found() && minfo.mod != null) region = Core.atlas.find(minfo.mod.name + "-factory" + suf + "-" + size + regionSuffix);
|
||||
if(!region.found()) region = Core.atlas.find("factory" + suf + "-" + size + regionSuffix);
|
||||
|
||||
return region;
|
||||
}
|
||||
|
||||
public static boolean blends(Building build, int direction){
|
||||
|
||||
Reference in New Issue
Block a user