FIx starcaller not working, blacklist aura nodes from rod of shaded mesa. Closes #387:

This commit is contained in:
Vincent Lee committed 2016-06-30 21:24:40 -05:00
1 parent 0b635c5bc7
commit 8e70e9fa68
2 files changed
+7 -1

No files matched your search

@@ -11,6 +11,7 @@
package vazkii.botania.common.core.proxy;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.boss.EntityDragon;
import net.minecraft.entity.boss.EntityDragonPart;
@@ -153,6 +154,11 @@ public class CommonProxy {
if(Botania.thaumcraftLoaded) {
ModBrews.initTC();
ModBrewRecipes.initTC();
try {
@SuppressWarnings("unchecked")
Class<? extends Entity> clazz = (Class<? extends Entity>) Class.forName("thaumcraft.common.lib.aura.EntityAuraNode");
BotaniaAPI.blacklistEntityFromGravityRod(clazz);
} catch (ClassNotFoundException ignored) {}
}
ModBlocks.addDispenserBehaviours();
@@ -54,7 +54,7 @@ public class ItemStarSword extends ItemManasteelSword implements ICraftAchieveme
Vector3 posVec = Vector3.fromBlockPos(pos.getBlockPos());
Vector3 motVec = new Vector3((0.5 * Math.random() - 0.25) * 18, 24, (0.5 * Math.random() - 0.25) * 18);
posVec = posVec.add(motVec);
motVec.normalize().negate().multiply(1.5);
motVec = motVec.normalize().negate().multiply(1.5);
EntityFallingStar star = new EntityFallingStar(world, player);
star.setPosition(posVec.x, posVec.y, posVec.z);