mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 13:09:42 +00:00
Misc fixes, fix baked models
This commit is contained in:
1 parent
268a8afda5
commit
0af2d25a71
40 files changed
+346
-525
No files matched your search
@@ -13,6 +13,7 @@ package vazkii.botania.common.entity;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
@@ -75,9 +76,9 @@ public class EntityFallingStar extends EntityThrowableCopy {
|
||||
}
|
||||
|
||||
if (pos.getBlockPos() != null) {
|
||||
Block block = worldObj.getBlockState(pos.getBlockPos()).getBlock();
|
||||
if(ConfigHandler.blockBreakParticles && !block.isAir(worldObj, pos.getBlockPos()))
|
||||
worldObj.playAuxSFX(2001, pos.getBlockPos(), Block.getStateId(worldObj.getBlockState(pos.getBlockPos())));
|
||||
IBlockState state = worldObj.getBlockState(pos.getBlockPos());
|
||||
if(ConfigHandler.blockBreakParticles && !state.getBlock().isAir(state, worldObj, pos.getBlockPos()))
|
||||
worldObj.playAuxSFX(2001, pos.getBlockPos(), Block.getStateId(state));
|
||||
}
|
||||
|
||||
setDead();
|
||||
|
||||
Reference in new issue
Block a user