mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-12 02:10:30 +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:
parent
d5aea26f3a
commit
d173787a94
@ -40,7 +40,13 @@ public abstract class SpeakerPeripheral implements IPeripheral
|
||||
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user