Allowed gamemode and ruleset objects to control each other
Also added GameMode:onExit(), which triggers on game exit or retry
This commit is contained in:
@@ -39,8 +39,8 @@ Ruleset.pieces = 7
|
||||
|
||||
-- Component functions.
|
||||
|
||||
function Ruleset:new()
|
||||
|
||||
function Ruleset:new(game_mode)
|
||||
self.game = game_mode
|
||||
if config.gamesettings.piece_colour == 1 then
|
||||
blocks["bone"] = (not self.world) and
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user