Fix player placemnt bug
This commit is contained in:
@@ -77,6 +77,12 @@ namespace Level
|
||||
|
||||
public void ChangeEnv(LevelBuilderButtons.PlacementOption placementOption)
|
||||
{
|
||||
// Can't place on the same block as player
|
||||
if (cellData.cellContent == LayoutCellData.CellContent.Player)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Clean previous contents
|
||||
cellData.cellContent = LayoutCellData.CellContent.None;
|
||||
cellData.isTarget = false;
|
||||
|
||||
Reference in New Issue
Block a user