Initial stab at 1.11
About halfway.
This commit is contained in:
parent
ce52aea512
commit
00d6f8eb46
157 changed files with 1036 additions and 1554 deletions
|
@ -42,30 +42,27 @@ public class RitualJumping extends Ritual
|
|||
|
||||
AreaDescriptor jumpRange = getBlockRange(JUMP_RANGE);
|
||||
List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, jumpRange.getAABB(masterRitualStone.getBlockPos()));
|
||||
if (entities != null)
|
||||
for (EntityLivingBase entity : entities)
|
||||
{
|
||||
for (EntityLivingBase entity : entities)
|
||||
if (totalEffects >= maxEffects)
|
||||
{
|
||||
if (totalEffects >= maxEffects)
|
||||
{
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
double motionY = 1.5;
|
||||
double motionY = 1.5;
|
||||
|
||||
entity.fallDistance = 0;
|
||||
if (entity.isSneaking())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
entity.fallDistance = 0;
|
||||
if (entity.isSneaking())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
entity.motionY = motionY;
|
||||
totalEffects++;
|
||||
entity.motionY = motionY;
|
||||
totalEffects++;
|
||||
|
||||
if (entity instanceof EntityPlayer)
|
||||
{
|
||||
Utils.setPlayerSpeedFromServer((EntityPlayer) entity, entity.motionX, entity.motionY, entity.motionZ);
|
||||
}
|
||||
if (entity instanceof EntityPlayer)
|
||||
{
|
||||
Utils.setPlayerSpeedFromServer((EntityPlayer) entity, entity.motionX, entity.motionY, entity.motionZ);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue