Change case on GameMode

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

No files matched your search

@@ -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):
+2 -2
View File
@@ -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