mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Fix #2361, and probably fixes #2346, caused indirectly by ModCoderPack/MCPBot-Issues#302.
This commit is contained in:
11 files changed
+12
-12
No files matched your search
@@ -85,7 +85,7 @@ public final class BlockHighlightRenderHandler {
|
||||
for(Entity e : mc.world.loadedEntityList)
|
||||
if(e instanceof EntityMagicLandmine) {
|
||||
BlockPos bpos = e.getPosition();
|
||||
AxisAlignedBB aabb = new AxisAlignedBB(bpos).offset(0, offY, 0).expand(2.5, 0, 2.5);
|
||||
AxisAlignedBB aabb = new AxisAlignedBB(bpos).offset(0, offY, 0).grow(2.5, 0, 2.5);
|
||||
|
||||
float gs = (float) (Math.sin(ClientTickHandler.total / 20) + 1) * 0.2F + 0.6F;
|
||||
int r = (int) (105 * gs);
|
||||
|
||||
@@ -222,7 +222,7 @@ public class TileSpreader extends TileSimpleInventory implements IManaCollector,
|
||||
double x = lastPingbackX;
|
||||
double y = lastPingbackY;
|
||||
double z = lastPingbackZ;
|
||||
AxisAlignedBB aabb = new AxisAlignedBB(x, y, z, x, y, z).expand(PINGBACK_EXPIRED_SEARCH_DISTANCE, PINGBACK_EXPIRED_SEARCH_DISTANCE, PINGBACK_EXPIRED_SEARCH_DISTANCE);
|
||||
AxisAlignedBB aabb = new AxisAlignedBB(x, y, z, x, y, z).grow(PINGBACK_EXPIRED_SEARCH_DISTANCE, PINGBACK_EXPIRED_SEARCH_DISTANCE, PINGBACK_EXPIRED_SEARCH_DISTANCE);
|
||||
List bursts = world.getEntitiesWithinAABB(Entity.class, aabb, Predicates.instanceOf(IManaBurst.class));
|
||||
IManaBurst found = null;
|
||||
UUID identity = getIdentifier();
|
||||
|
||||
@@ -141,7 +141,7 @@ public class EntityBabylonWeapon extends EntityThrowableCopy implements ILightPr
|
||||
setLiveTicks(liveTime + 1);
|
||||
|
||||
if(!world.isRemote) {
|
||||
AxisAlignedBB axis = new AxisAlignedBB(posX, posY, posZ, lastTickPosX, lastTickPosY, lastTickPosZ).expand(2, 2, 2);
|
||||
AxisAlignedBB axis = new AxisAlignedBB(posX, posY, posZ, lastTickPosX, lastTickPosY, lastTickPosZ).grow(2);
|
||||
List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living == thrower)
|
||||
|
||||
@@ -54,7 +54,7 @@ public class EntityFallingStar extends EntityThrowableCopy implements ILightProv
|
||||
|
||||
EntityLivingBase thrower = getThrower();
|
||||
if(!world.isRemote && thrower != null) {
|
||||
AxisAlignedBB axis = new AxisAlignedBB(posX, posY, posZ, lastTickPosX, lastTickPosY, lastTickPosZ).expand(2, 2, 2);
|
||||
AxisAlignedBB axis = new AxisAlignedBB(posX, posY, posZ, lastTickPosX, lastTickPosY, lastTickPosZ).grow(2);
|
||||
List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living == thrower)
|
||||
|
||||
@@ -80,7 +80,7 @@ public class EntityFlameRing extends Entity implements ILightProvider {
|
||||
}
|
||||
|
||||
if(ticksExisted > 45) {
|
||||
AxisAlignedBB boundingBox = new AxisAlignedBB(posX, posY, posZ, posX, posY, posZ).expand(radius, radius, radius);
|
||||
AxisAlignedBB boundingBox = new AxisAlignedBB(posX, posY, posZ, posX, posY, posZ).grow(radius, radius, radius);
|
||||
List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, boundingBox);
|
||||
|
||||
if(entities.isEmpty())
|
||||
|
||||
@@ -56,13 +56,13 @@ public class EntityThrownItem extends EntityItem {
|
||||
if (!world.isRemote)
|
||||
{
|
||||
Entity entity = null;
|
||||
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity(this, getEntityBoundingBox().offset(motionX*2, motionY*2, motionZ*2).expand(2.0D, 2.0D, 2.0D));
|
||||
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity(this, getEntityBoundingBox().offset(motionX*2, motionY*2, motionZ*2).grow(2));
|
||||
double d0 = 0.0D;
|
||||
|
||||
for (Entity entity1 : list) {
|
||||
if (entity1.canBeCollidedWith() && (!(entity1 instanceof EntityPlayer) || delayBeforeCanPickup == 0)) {
|
||||
float f = 1.0F;
|
||||
AxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(f, f, f);
|
||||
AxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().grow(f);
|
||||
RayTraceResult RayTraceResult1 = axisalignedbb.calculateIntercept(vec3, vec31);
|
||||
|
||||
if (RayTraceResult1 != null) {
|
||||
|
||||
@@ -46,7 +46,7 @@ public class ItemGoddessCharm extends ItemBauble implements IManaUsingItem, IBau
|
||||
public static void onExplosion(ExplosionEvent.Detonate event) {
|
||||
Explosion e = event.getExplosion();
|
||||
Vec3d vec = e.getPosition();
|
||||
List<EntityPlayer> players = event.getWorld().getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(vec.x, vec.y, vec.z, vec.x, vec.y, vec.z).expand(8, 8, 8));
|
||||
List<EntityPlayer> players = event.getWorld().getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(vec.x, vec.y, vec.z, vec.x, vec.y, vec.z).grow(8));
|
||||
|
||||
for(EntityPlayer player : players) {
|
||||
ItemStack charm = BaublesApi.getBaublesHandler(player).getStackInSlot(6);
|
||||
|
||||
@@ -54,7 +54,7 @@ public class ItemThirdEye extends ItemBauble implements IManaUsingItem, IBaubleR
|
||||
EntityPlayer eplayer = (EntityPlayer) player;
|
||||
|
||||
double range = 24;
|
||||
AxisAlignedBB aabb = new AxisAlignedBB(player.posX, player.posY, player.posZ, player.posX, player.posY, player.posZ).expand(range, range, range);
|
||||
AxisAlignedBB aabb = new AxisAlignedBB(player.posX, player.posY, player.posZ, player.posX, player.posY, player.posZ).grow(range);
|
||||
List<EntityLivingBase> mobs = player.world.getEntitiesWithinAABB(EntityLivingBase.class, aabb, (Entity e) -> e instanceof IMob);
|
||||
|
||||
if(!mobs.isEmpty())
|
||||
|
||||
+1
-1
@@ -112,7 +112,7 @@ public class ItemTerraSword extends ItemManasteelSword implements ILensEffect {
|
||||
@Override
|
||||
public void updateBurst(IManaBurst burst, ItemStack stack) {
|
||||
EntityThrowable entity = (EntityThrowable) burst;
|
||||
AxisAlignedBB axis = new AxisAlignedBB(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1, 1, 1);
|
||||
AxisAlignedBB axis = new AxisAlignedBB(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).grow(1);
|
||||
List<EntityLivingBase> entities = entity.world.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
String attacker = ItemNBTHelper.getString(burst.getSourceLens(), TAG_ATTACKER_USERNAME, "");
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ public class LensDamage extends Lens {
|
||||
public void updateBurst(IManaBurst burst, EntityThrowable entity, ItemStack stack) {
|
||||
if (entity.world.isRemote)
|
||||
return;
|
||||
AxisAlignedBB axis = new AxisAlignedBB(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1, 1, 1);
|
||||
AxisAlignedBB axis = new AxisAlignedBB(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).grow(1);
|
||||
List<EntityLivingBase> entities = entity.world.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer)
|
||||
|
||||
@@ -37,7 +37,7 @@ public class LensTripwire extends Lens {
|
||||
if(entity.world.isRemote)
|
||||
return;
|
||||
|
||||
AxisAlignedBB axis = new AxisAlignedBB(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(0.25, 0.25, 0.25);
|
||||
AxisAlignedBB axis = new AxisAlignedBB(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).grow(0.25);
|
||||
List<EntityLivingBase> entities = entity.world.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
if(!entities.isEmpty()) {
|
||||
Entity e = (Entity) burst;
|
||||
|
||||
Reference in new issue
Block a user