mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
fix: when querying falloff mods is checked to be not undefined
This commit is contained in:
@@ -435,7 +435,7 @@ export default class Module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Falloff from range is mapped to range
|
// Falloff from range is mapped to range
|
||||||
if (this.mods['fallofffromrange']) {
|
if (this.mods && this.mods['fallofffromrange']) {
|
||||||
return this.getRange();
|
return this.getRange();
|
||||||
// If range is modified but not falloff, increase the falloff to keep ratio
|
// If range is modified but not falloff, increase the falloff to keep ratio
|
||||||
} else if (this.getModValue('range')) {
|
} else if (this.getModValue('range')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user