From bae1ef5e91801478741979bd477e137c2b19da57 Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Fri, 18 Oct 2024 22:23:38 +0200 Subject: [PATCH] Comment out logging oon ItemTeleportStaff --- .../actuallyadditions/mod/items/ItemTeleportStaff.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemTeleportStaff.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemTeleportStaff.java index accd27c5f..2ca331d3b 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemTeleportStaff.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemTeleportStaff.java @@ -10,7 +10,6 @@ package de.ellpeck.actuallyadditions.mod.items; -import de.ellpeck.actuallyadditions.mod.ActuallyAdditions; import de.ellpeck.actuallyadditions.mod.items.base.ItemEnergy; import net.minecraft.core.BlockPos; import net.minecraft.server.level.ServerPlayer; @@ -40,10 +39,10 @@ public class ItemTeleportStaff extends ItemEnergy { Vec3 pos = Vec3.atBottomCenterOf(BlockPos.containing(location.x, location.y, location.z)); int baseUse = 200; int use = baseUse + (int) (baseUse * Math.sqrt(player.blockPosition().distManhattan(BlockPos.containing(pos.x, pos.y, pos.z)))); - ActuallyAdditions.LOGGER.info("Use: " + use + " Energy: " + this.getEnergyStored(stack)); - ActuallyAdditions.LOGGER.info("Distance: " + Math.sqrt(player.blockPosition().distSqr(BlockPos.containing(pos.x, pos.y, pos.z)))); - ActuallyAdditions.LOGGER.info("Player: " + player.blockPosition()); - ActuallyAdditions.LOGGER.info("Pos: " + pos); +// ActuallyAdditions.LOGGER.info("Use: " + use + " Energy: " + this.getEnergyStored(stack)); +// ActuallyAdditions.LOGGER.info("Distance: " + Math.sqrt(player.blockPosition().distSqr(BlockPos.containing(pos.x, pos.y, pos.z)))); +// ActuallyAdditions.LOGGER.info("Player: " + player.blockPosition()); +// ActuallyAdditions.LOGGER.info("Pos: " + pos); if (this.getEnergyStored(stack) >= use) { ((ServerPlayer) player).connection.teleport(pos.x, pos.y + 1F, pos.z, player.getYRot(), player.getXRot()); player.removeVehicle();