mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-30 21:23:00 +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:
		| @@ -40,7 +40,13 @@ public abstract class SpeakerPeripheral implements IPeripheral | |||||||
|  |  | ||||||
|     public abstract World getWorld(); |     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 |     @Deprecated | ||||||
|     public BlockPos getPos() |     public BlockPos getPos() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 SquidDev
					SquidDev