9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

fix: bad value for gamemode

This commit is contained in:
LoJoSho
2025-07-10 19:20:08 -05:00
parent 3c64fb72ea
commit 5735fb0eff
6 changed files with 6 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ public class NMSPackets extends NMSCommon implements me.lojosho.hibiscuscommons.
@Override
public void sendGamemodeChange(Player player, GameMode gameMode) {
ClientboundGameEventPacket.Type type = ClientboundGameEventPacket.CHANGE_GAME_MODE;
float param = gameMode.ordinal();
float param = gameMode.getValue();
ClientboundGameEventPacket packet = new ClientboundGameEventPacket(type, param);
sendPacket(player, packet);

View File

@@ -132,7 +132,7 @@ public class NMSPackets extends NMSCommon implements me.lojosho.hibiscuscommons.
@Override
public void sendGamemodeChange(Player player, GameMode gameMode) {
ClientboundGameEventPacket.Type type = ClientboundGameEventPacket.CHANGE_GAME_MODE;
float param = gameMode.ordinal();
float param = gameMode.getValue();
ClientboundGameEventPacket packet = new ClientboundGameEventPacket(type, param);
sendPacket(player, packet);

View File

@@ -133,7 +133,7 @@ public class NMSPackets extends NMSCommon implements me.lojosho.hibiscuscommons.
@Override
public void sendGamemodeChange(Player player, GameMode gameMode) {
ClientboundGameEventPacket.Type type = ClientboundGameEventPacket.CHANGE_GAME_MODE;
float param = gameMode.ordinal();
float param = gameMode.getValue();
ClientboundGameEventPacket packet = new ClientboundGameEventPacket(type, param);
sendPacket(player, packet);

View File

@@ -136,7 +136,7 @@ public class NMSPackets extends NMSCommon implements me.lojosho.hibiscuscommons.
@Override
public void sendGamemodeChange(Player player, GameMode gameMode) {
ClientboundGameEventPacket.Type type = ClientboundGameEventPacket.CHANGE_GAME_MODE;
float param = gameMode.ordinal();
float param = gameMode.getValue();
ClientboundGameEventPacket packet = new ClientboundGameEventPacket(type, param);
sendPacket(player, packet);

View File

@@ -134,7 +134,7 @@ public class NMSPackets extends NMSCommon implements me.lojosho.hibiscuscommons.
@Override
public void sendGamemodeChange(Player player, GameMode gameMode) {
ClientboundGameEventPacket.Type type = ClientboundGameEventPacket.CHANGE_GAME_MODE;
float param = gameMode.ordinal();
float param = gameMode.getValue();
ClientboundGameEventPacket packet = new ClientboundGameEventPacket(type, param);
sendPacket(player, packet);

View File

@@ -131,7 +131,7 @@ public class NMSPackets extends NMSCommon implements me.lojosho.hibiscuscommons.
@Override
public void sendGamemodeChange(Player player, GameMode gameMode) {
ClientboundGameEventPacket.Type type = ClientboundGameEventPacket.CHANGE_GAME_MODE;
float param = gameMode.ordinal();
float param = gameMode.getValue();
ClientboundGameEventPacket packet = new ClientboundGameEventPacket(type, param);
sendPacket(player, packet);