Display black hole information to players in creative
This commit is contained in:
parent
1ce4578336
commit
f843f182a9
@ -141,11 +141,12 @@ class BlackHoleRenderer(private val context: BlockEntityRendererProvider.Context
|
||||
}
|
||||
|
||||
if (
|
||||
ply != null &&
|
||||
ply.getCapability(MatteryCapability.ANDROID).isPresent &&
|
||||
ply.getCapability(MatteryCapability.ANDROID).resolve().get().isAndroid() &&
|
||||
poseStack.translation().length() < tile.gravitationStrength * 16.0
|
||||
) {
|
||||
ply != null && (
|
||||
ply.abilities.instabuild || ply.abilities.invulnerable ||
|
||||
ply.getCapability(MatteryCapability.ANDROID).isPresent &&
|
||||
ply.getCapability(MatteryCapability.ANDROID).resolve().get().isAndroid() &&
|
||||
poseStack.translation().length() < tile.gravitationStrength * 16.0
|
||||
)) {
|
||||
val facing = tile.blockPos.asVector() - Minecraft.getInstance().gameRenderer.mainCamera.position
|
||||
val normal = facing.normalize()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user