fix: typing order
This commit is contained in:
@@ -9,6 +9,13 @@ import Control.Lens
|
||||
|
||||
data CommandBlockType = Impulse | Chain | Repeating | Redstone deriving (Eq)
|
||||
|
||||
instance Show CommandBlockType where
|
||||
show t = case t of
|
||||
Impulse -> "command_block"
|
||||
Chain -> "chain_command_block"
|
||||
Repeating -> "repeating_command_block"
|
||||
Redstone -> "redstone_block" -- quick-dirty
|
||||
|
||||
data CommandBlock = CommandBlock
|
||||
{ _commandBlockType :: CommandBlockType
|
||||
, _command :: String
|
||||
@@ -20,12 +27,6 @@ makeLenses ''CommandBlock
|
||||
defaultCommandBlock :: CommandBlock
|
||||
defaultCommandBlock = CommandBlock Impulse "" defaultPos
|
||||
|
||||
instance Show CommandBlockType where
|
||||
show t = case t of
|
||||
Impulse -> "command_block"
|
||||
Chain -> "chain_command_block"
|
||||
Repeating -> "repeating_command_block"
|
||||
Redstone -> "redstone_block" -- quick-dirty
|
||||
|
||||
generateCommandChain :: ChainType -> [String] -> [CommandBlock]
|
||||
generateCommandChain ct = zipWith genCommand [0..]
|
||||
|
||||
Reference in New Issue
Block a user