mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-06 07:30:35 +07:00
Clipping bugfixes
This commit is contained in:
parent
3527acd33e
commit
cb0382a15b
@ -20,17 +20,18 @@ public class ModClassLoader extends ClassLoader{
|
||||
|
||||
ClassNotFoundException last = null;
|
||||
int size = children.size;
|
||||
|
||||
inChild = true;
|
||||
//if it doesn't exist in the main class loader, try all the children
|
||||
for(int i = 0; i < size; i++){
|
||||
try{
|
||||
inChild = true;
|
||||
var out = children.get(i).loadClass(name);
|
||||
inChild = false;
|
||||
return out;
|
||||
return children.get(i).loadClass(name);
|
||||
}catch(ClassNotFoundException e){
|
||||
last = e;
|
||||
}
|
||||
}
|
||||
inChild = false;
|
||||
|
||||
throw (last == null ? new ClassNotFoundException(name) : last);
|
||||
}
|
||||
}
|
||||
|
@ -40,6 +40,8 @@ public class ImpactReactor extends PowerGenerator{
|
||||
hasItems = true;
|
||||
outputsPower = consumesPower = true;
|
||||
flags = EnumSet.of(BlockFlag.reactor, BlockFlag.generator);
|
||||
lightRadius = 115f;
|
||||
emitLight = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -25,6 +25,7 @@ public class DrawSmelter extends DrawBlock{
|
||||
@Override
|
||||
public void load(Block block){
|
||||
top = Core.atlas.find(block.name + "-top");
|
||||
block.clipSize = Math.max(block.clipSize, (lightRadius + lightSinMag) * 2f * block.size);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user