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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user