mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-23 21:49:50 +00:00
Fix animated torch being xray, fix starfield not spawning particles
This commit is contained in:
1 parent
038058a91e
commit
3804675961
2 files changed
+13
-4
No files matched your search
@@ -118,6 +118,11 @@ public class BlockAnimatedTorch extends BlockMod implements IWandable, IManaTrig
|
||||
return SHAPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSolid(BlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createTileEntity(@Nonnull BlockState state, @Nonnull IBlockReader world) {
|
||||
return new TileAnimatedTorch();
|
||||
|
||||
@@ -28,7 +28,11 @@ public class TileStarfield extends TileMod implements ITickableTileEntity {
|
||||
|
||||
@Override
|
||||
public void tick() {
|
||||
if(!world.isDaytime() && world.isRemote) {
|
||||
if(world.isRemote) {
|
||||
world.calculateInitialSkylight(); // ensure isDayTime works properly by updating skylightSubtracted
|
||||
if (world.isDaytime())
|
||||
return;
|
||||
|
||||
double radius = 512;
|
||||
int iter = 2;
|
||||
for(int i = 0; i < iter; i++) {
|
||||
@@ -46,9 +50,9 @@ public class TileStarfield extends TileMod implements ITickableTileEntity {
|
||||
float s = 20F + (float) Math.random() * 20F;
|
||||
int m = 50;
|
||||
|
||||
SparkleParticleData data = SparkleParticleData.sparkle(s, r, g, b, m);
|
||||
world.addParticle(data, x, y, z, 0, 0, 0);
|
||||
}
|
||||
SparkleParticleData data = SparkleParticleData.sparkle(s, r, g, b, m);
|
||||
Botania.proxy.addParticleForce(world, data, x, y, z, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user