From f59a0fda8db7a190a3d6471842a715cd73278bfc Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 4 Oct 2021 17:18:00 +0200 Subject: [PATCH] Fix some stuff --- src/de/steamwar/lobby/display/Hologram.java | 4 ++-- src/de/steamwar/lobby/listener/Join.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/lobby/display/Hologram.java b/src/de/steamwar/lobby/display/Hologram.java index 259887f..2e5ff6d 100644 --- a/src/de/steamwar/lobby/display/Hologram.java +++ b/src/de/steamwar/lobby/display/Hologram.java @@ -65,10 +65,10 @@ public class Hologram implements ConfigurationSerializable { private static final Reflection.ConstructorInvoker itemConstructor = Reflection.getConstructor(item, dataWatcherObject, Object.class); private static final Object invisibleWatcher = getDataWatcherObject(0, Byte.class); private static final Object nameWatcher = getDataWatcherObject(2, String.class); - private static final Object nameVisibleWatcher = getDataWatcherObject(3, String.class); + private static final Object nameVisibleWatcher = getDataWatcherObject(3, Boolean.class); private static final Object silentWatcher = getDataWatcherObject(4, Boolean.class); private static final Object noGravityWatcher = getDataWatcherObject(5, Boolean.class); - private static final Object sizeWatcher = getDataWatcherObject(15, Byte.class); + private static final Object sizeWatcher = getDataWatcherObject(14, Byte.class); private static final Class destroyPacket = Reflection.getClass("{nms}.PacketPlayOutEntityDestroy"); private static final Reflection.ConstructorInvoker destoryPacketConstructor = Reflection.getConstructor(destroyPacket); diff --git a/src/de/steamwar/lobby/listener/Join.java b/src/de/steamwar/lobby/listener/Join.java index 4cdd8fa..799c913 100644 --- a/src/de/steamwar/lobby/listener/Join.java +++ b/src/de/steamwar/lobby/listener/Join.java @@ -31,7 +31,7 @@ public class Join extends BasicListener { Player player = e.getPlayer(); player.setGameMode(GameMode.ADVENTURE); - player.setWalkSpeed(5.0f); + player.setWalkSpeed(0.5f); //new ImALobbyPacket().send(player); }