From c5881276487c8ad8b950b953dd8e984e0a356e8a Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Wed, 19 May 2021 22:34:50 -0400 Subject: [PATCH] Yeet block tool type This is 99% controlled by the server now. --- .../network/translators/world/block/BlockTranslator.java | 2 -- .../java/org/geysermc/connector/registry/type/BlockMapping.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/world/block/BlockTranslator.java b/connector/src/main/java/org/geysermc/connector/network/translators/world/block/BlockTranslator.java index 1737415f7..efa3a7c2b 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/world/block/BlockTranslator.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/world/block/BlockTranslator.java @@ -143,8 +143,6 @@ public abstract class BlockTranslator { builder.canBreakWithHand(false); } - builder.toolType(""); //TODO - JsonNode collisionIndexNode = entry.getValue().get("collision_index"); if (hardnessNode != null) { builder.collisionIndex(collisionIndexNode.intValue()); diff --git a/connector/src/main/java/org/geysermc/connector/registry/type/BlockMapping.java b/connector/src/main/java/org/geysermc/connector/registry/type/BlockMapping.java index f3eaddd91..99045bb22 100644 --- a/connector/src/main/java/org/geysermc/connector/registry/type/BlockMapping.java +++ b/connector/src/main/java/org/geysermc/connector/registry/type/BlockMapping.java @@ -28,7 +28,6 @@ package org.geysermc.connector.registry.type; import lombok.Builder; import lombok.Value; -import javax.annotation.Nonnull; import javax.annotation.Nullable; @Builder @@ -45,7 +44,6 @@ public class BlockMapping { double hardness; boolean canBreakWithHand; - @Nonnull String toolType; /** * The index of this collision in collision.json */