Clipping bugfixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user