From 103b53a97a28cac44996f3e8afce8380795aacf0 Mon Sep 17 00:00:00 2001 From: Zachy24 Date: Wed, 15 Aug 2018 22:29:18 +0100 Subject: [PATCH] Change case on GameMode --- minecraft/networking/packets/clientbound/play/__init__.py | 6 +++--- minecraft/networking/types/enum.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/minecraft/networking/packets/clientbound/play/__init__.py b/minecraft/networking/packets/clientbound/play/__init__.py index e417a86..286cc40 100644 --- a/minecraft/networking/packets/clientbound/play/__init__.py +++ b/minecraft/networking/packets/clientbound/play/__init__.py @@ -4,7 +4,7 @@ from minecraft.networking.packets import ( from minecraft.networking.types import ( Integer, FixedPointInteger, UnsignedByte, Byte, Boolean, UUID, Short, - VarInt, Double, Float, String, Enum, Difficulty, Dimension, Gamemode + VarInt, Double, Float, String, Enum, Difficulty, Dimension, GameMode ) from .combat_event_packet import CombatEventPacket @@ -81,7 +81,7 @@ class JoinGamePacket(Packet): Difficulty = Difficulty # JoinGamePacket.Gamemode is an alias for Gamemode - Gamemode = Gamemode + GameMode = GameMode # JoinGamePacket.Dimension is an alias for Dimension Dimension = Dimension @@ -240,7 +240,7 @@ class RespawnPacket(Packet): Dimension = Dimension # RespawnPacket.Gamemode is an alias for Gamemode. - Gamemode = Gamemode + GameMode = GameMode class PluginMessagePacket(AbstractPluginMessagePacket): diff --git a/minecraft/networking/types/enum.py b/minecraft/networking/types/enum.py index 8336739..8d43374 100644 --- a/minecraft/networking/types/enum.py +++ b/minecraft/networking/types/enum.py @@ -12,7 +12,7 @@ from .utility import Vector __all__ = ( 'Enum', 'BitFieldEnum', 'AbsoluteHand', 'RelativeHand', 'BlockFace', - 'Difficulty', 'Dimension', 'Gamemode' + 'Difficulty', 'Dimension', 'GameMode' ) @@ -101,7 +101,7 @@ class Dimension(Enum): # Designation of a player's gamemode. -class Gamemode(Enum): +class GameMode(Enum): SURVIVAL = 0 CREATIVE = 1 ADVENTURE = 2