mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 12:04:48 +01:00
Fixes potential infinite loops with creating mine turfs
This commit is contained in:
@@ -156,7 +156,6 @@
|
||||
var/mineralChance = 10 //means 10% chance of this plot changing to a mineral deposit
|
||||
|
||||
/turf/simulated/mineral/random/New()
|
||||
..()
|
||||
if (prob(mineralChance))
|
||||
var/mName = pickweight(mineralSpawnChanceList) //temp mineral name
|
||||
|
||||
@@ -180,6 +179,7 @@
|
||||
if("Clown")
|
||||
M = new/turf/simulated/mineral/clown(src)
|
||||
if(M)
|
||||
..()
|
||||
src = M
|
||||
M.levelupdate()
|
||||
|
||||
|
||||
@@ -148,7 +148,6 @@
|
||||
var/mineralChance = 10 //means 10% chance of this plot changing to a mineral deposit
|
||||
|
||||
/turf/unsimulated/mineral/random/New()
|
||||
..()
|
||||
if (prob(mineralChance))
|
||||
var/mName = pickweight(mineralSpawnChanceList) //temp mineral name
|
||||
|
||||
@@ -172,6 +171,7 @@
|
||||
if("Clown")
|
||||
M = new/turf/unsimulated/mineral/clown(src)
|
||||
if(M)
|
||||
..()
|
||||
src = M
|
||||
M.levelupdate()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user