From 37dc2d5b79513bdf20ef0065fa8c22a86f2aeaea Mon Sep 17 00:00:00 2001 From: Shnupbups Date: Wed, 1 Jul 2020 13:19:21 +1000 Subject: [PATCH] whoops --- gradle.properties | 2 +- .../astromine/common/item/HolographicConnectorItem.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 5f6f9bde3..8176f5793 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ api_version = 0.14.1+build.372-1.16 # Mod mod_name = astromine -mod_version = 1.0.19 +mod_version = 1.0.20 mod_group = com.github.chainmailstudios version_meta = fabric-1.16.1 diff --git a/src/main/java/com/github/chainmailstudios/astromine/common/item/HolographicConnectorItem.java b/src/main/java/com/github/chainmailstudios/astromine/common/item/HolographicConnectorItem.java index 948dfc360..c647c12c0 100644 --- a/src/main/java/com/github/chainmailstudios/astromine/common/item/HolographicConnectorItem.java +++ b/src/main/java/com/github/chainmailstudios/astromine/common/item/HolographicConnectorItem.java @@ -62,12 +62,12 @@ public ActionResult useOnBlock(ItemUsageContext context) { if ((parent.getPos().getX() != entity.getPos().getX() && parent.getPos().getZ() != entity.getPos().getZ()) || oP.getSquaredDistance(nP) > 65536) { CACHE.put(world, null); - context.getPlayer().sendMessage(new TranslatableText("text.astromine.message.holographic_connection_failed", toShortString(parent.getPos()), entity.getPos().toShortString()).formatted(Formatting.RED), true); + context.getPlayer().sendMessage(new TranslatableText("text.astromine.message.holographic_connection_failed", toShortString(parent.getPos()), toShortString(entity.getPos())).formatted(Formatting.RED), true); world.playSound(context.getPlayer(), context.getBlockPos(), AstromineSounds.HOLOGRAPHIC_CONNECTOR_CLICK, SoundCategory.PLAYERS, 0.5f, 0.33f); return ActionResult.FAIL; } else if (parent.getCachedState().get(HorizontalFacingBlock.FACING).getOpposite() != entity.getCachedState().get(HorizontalFacingBlock.FACING)) { CACHE.put(world, null); - context.getPlayer().sendMessage(new TranslatableText("text.astromine.message.holographic_connection_failed", toShortString(parent.getPos()), entity.getPos().toShortString()).formatted(Formatting.RED), true); + context.getPlayer().sendMessage(new TranslatableText("text.astromine.message.holographic_connection_failed", toShortString(parent.getPos()), toShortString(entity.getPos())).formatted(Formatting.RED), true); world.playSound(context.getPlayer(), context.getBlockPos(), AstromineSounds.HOLOGRAPHIC_CONNECTOR_CLICK, SoundCategory.PLAYERS, 0.5f, 0.33f); return ActionResult.FAIL; } @@ -85,7 +85,7 @@ public ActionResult useOnBlock(ItemUsageContext context) { if (world.isClient) { CACHE.put(world, null); - context.getPlayer().sendMessage(new TranslatableText("text.astromine.message.holographic_connection_successful", parent.getPos().toShortString(), entity.getPos().toShortString()).formatted(Formatting.GREEN), true); + context.getPlayer().sendMessage(new TranslatableText("text.astromine.message.holographic_connection_successful", toShortString(parent.getPos()), toShortString(entity.getPos())).formatted(Formatting.GREEN), true); world.playSound(context.getPlayer(), context.getBlockPos(), AstromineSounds.HOLOGRAPHIC_CONNECTOR_CLICK, SoundCategory.PLAYERS, 0.5f, 0.33f); } }