Change case on GameMode

This commit is contained in:
Zachy24 2018-08-15 22:29:18 +01:00
parent da103c6d3c
commit 103b53a97a
2 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ from minecraft.networking.packets import (
from minecraft.networking.types import ( from minecraft.networking.types import (
Integer, FixedPointInteger, UnsignedByte, Byte, Boolean, UUID, Short, 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 from .combat_event_packet import CombatEventPacket
@ -81,7 +81,7 @@ class JoinGamePacket(Packet):
Difficulty = Difficulty Difficulty = Difficulty
# JoinGamePacket.Gamemode is an alias for Gamemode # JoinGamePacket.Gamemode is an alias for Gamemode
Gamemode = Gamemode GameMode = GameMode
# JoinGamePacket.Dimension is an alias for Dimension # JoinGamePacket.Dimension is an alias for Dimension
Dimension = Dimension Dimension = Dimension
@ -240,7 +240,7 @@ class RespawnPacket(Packet):
Dimension = Dimension Dimension = Dimension
# RespawnPacket.Gamemode is an alias for Gamemode. # RespawnPacket.Gamemode is an alias for Gamemode.
Gamemode = Gamemode GameMode = GameMode
class PluginMessagePacket(AbstractPluginMessagePacket): class PluginMessagePacket(AbstractPluginMessagePacket):

View File

@ -12,7 +12,7 @@ from .utility import Vector
__all__ = ( __all__ = (
'Enum', 'BitFieldEnum', 'AbsoluteHand', 'RelativeHand', 'BlockFace', 'Enum', 'BitFieldEnum', 'AbsoluteHand', 'RelativeHand', 'BlockFace',
'Difficulty', 'Dimension', 'Gamemode' 'Difficulty', 'Dimension', 'GameMode'
) )
@ -101,7 +101,7 @@ class Dimension(Enum):
# Designation of a player's gamemode. # Designation of a player's gamemode.
class Gamemode(Enum): class GameMode(Enum):
SURVIVAL = 0 SURVIVAL = 0
CREATIVE = 1 CREATIVE = 1
ADVENTURE = 2 ADVENTURE = 2