1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-25 22:53:22 +00:00

Another backwards compat change

Plethora only implements getPos on older versions, so we need to stub
out both.
This commit is contained in:
SquidDev 2019-01-21 17:35:10 +00:00
parent d5aea26f3a
commit d173787a94

View File

@ -40,7 +40,13 @@ public void update()
public abstract World getWorld();
public abstract Vec3d getPosition();
public Vec3d getPosition()
{
// FIXME: Should be abstract, but we need this for Plethora compat. We'll
// be able to change this in a few versions as we implement both there.
@SuppressWarnings( "deprecation" ) BlockPos pos = getPos();
return new Vec3d( pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5 );
}
@Deprecated
public BlockPos getPos()