diff options
author | Appability <appable@icloud.com> | 2022-10-12 14:30:01 -0700 |
---|---|---|
committer | Appability <appable@icloud.com> | 2022-10-12 14:30:01 -0700 |
commit | 4e81e91a7aea23b81347accf56f89121451f7e0c (patch) | |
tree | 8d75d2db1961b70a1a5c4155570d0daeee1cd94e /src/main/kotlin/com/ambientaddons/features/dungeon | |
parent | 42fb54e0eaedc44d22a8c86fc539e46c68af3dab (diff) | |
download | AmbientAddons-4e81e91a7aea23b81347accf56f89121451f7e0c.tar.gz AmbientAddons-4e81e91a7aea23b81347accf56f89121451f7e0c.tar.bz2 AmbientAddons-4e81e91a7aea23b81347accf56f89121451f7e0c.zip |
ignore carpet (this time stolen from floppa) + surprisingly annoying lateinit stuff
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features/dungeon')
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/dungeon/IgnoreCarpet.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/dungeon/IgnoreCarpet.kt b/src/main/kotlin/com/ambientaddons/features/dungeon/IgnoreCarpet.kt new file mode 100644 index 0000000..6283b9c --- /dev/null +++ b/src/main/kotlin/com/ambientaddons/features/dungeon/IgnoreCarpet.kt @@ -0,0 +1,9 @@ +package com.ambientaddons.features.dungeon + +import AmbientAddons.Companion.config + +object IgnoreCarpet { + fun shouldIgnoreCarpet(): Boolean = if (AmbientAddons.isInitialized()) { + config.ignoreCarpet + } else false +}
\ No newline at end of file |