mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-24 13:39:02 -06:00
Compare commits
2 Commits
18e0e02c76
...
a063f10d33
Author | SHA1 | Date | |
---|---|---|---|
|
a063f10d33 | ||
|
6e0b5e27c1 |
@ -530,6 +530,8 @@ function GameMode:onEnterOrHold(inputs, ruleset)
|
||||
if not self.grid:canPlacePiece(self.piece) then
|
||||
self.game_over = true
|
||||
return
|
||||
elseif self.piece:isDropBlocked(self.grid) then
|
||||
playSE("bottom")
|
||||
end
|
||||
ruleset:dropPiece(
|
||||
inputs, self.piece, self.grid, self:getGravity(),
|
||||
@ -578,10 +580,6 @@ function GameMode:initializeNextPiece(
|
||||
self.piece_soft_locked = false
|
||||
self.buffer_hard_drop = false
|
||||
self.buffer_soft_drop = false
|
||||
if self.piece:isDropBlocked(self.grid) and
|
||||
self.grid:canPlacePiece(self.piece) then
|
||||
playSE("bottom")
|
||||
end
|
||||
if generate_next_piece == nil then
|
||||
table.remove(self.next_queue, 1)
|
||||
table.insert(self.next_queue, self:getNextPiece(ruleset))
|
||||
|
Loading…
Reference in New Issue
Block a user