Fixed the symmetry issues of the Ritual of Containment
This commit is contained in:
parent
9538e9aa0d
commit
dade5f0837
3 changed files with 10 additions and 4 deletions
|
@ -43,9 +43,9 @@ public class RitualContainment extends Ritual
|
|||
if (entity instanceof EntityPlayer && (((EntityPlayer) entity).capabilities.isCreativeMode || PlayerHelper.getUUIDFromPlayer((EntityPlayer) entity).toString().equals(masterRitualStone.getOwner())))
|
||||
continue;
|
||||
|
||||
double xDif = entity.posX - masterRitualStone.getBlockPos().getX() + 0.5;
|
||||
double yDif = entity.posY - masterRitualStone.getBlockPos().getY() + 3;
|
||||
double zDif = entity.posZ - masterRitualStone.getBlockPos().getZ() + 0.5;
|
||||
double xDif = entity.posX - (masterRitualStone.getBlockPos().getX() + 0.5);
|
||||
double yDif = entity.posY - (masterRitualStone.getBlockPos().getY() + 2.5);
|
||||
double zDif = entity.posZ - (masterRitualStone.getBlockPos().getZ() + 0.5);
|
||||
|
||||
entity.motionX = -0.05 * xDif;
|
||||
entity.motionY = -0.05 * yDif;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue