This commit is contained in:
Ishaan Bhardwaj 2020-11-16 12:51:21 -05:00
parent cf6e0be4e7
commit b03473d2fe

View File

@ -180,7 +180,7 @@ function Ruleset:getDefaultOrientation() return 1 end
function Ruleset:initializePiece( function Ruleset:initializePiece(
inputs, data, grid, gravity, prev_inputs, inputs, data, grid, gravity, prev_inputs,
move, lock_delay, drop_speed, move, lock_delay, drop_speed,
drop_locked, hard_drop_locked, big drop_locked, hard_drop_locked, big, irs
) )
local spawn_positions local spawn_positions
if big then if big then
@ -196,7 +196,7 @@ function Ruleset:initializePiece(
}, self.block_offsets, 0, 0, data.skin, colours[data.shape], big) }, self.block_offsets, 0, 0, data.skin, colours[data.shape], big)
self:onPieceCreate(piece) self:onPieceCreate(piece)
self:rotatePiece(inputs, piece, grid, {}, true) if irs then self:rotatePiece(inputs, piece, grid, {}, true) end
self:dropPiece(inputs, piece, grid, gravity, drop_speed, drop_locked, hard_drop_locked) self:dropPiece(inputs, piece, grid, gravity, drop_speed, drop_locked, hard_drop_locked)
return piece return piece
end end