mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
FIx starcaller not working, blacklist aura nodes from rod of shaded mesa. Closes #387:
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user