From 4e81e91a7aea23b81347accf56f89121451f7e0c Mon Sep 17 00:00:00 2001 From: Appability Date: Wed, 12 Oct 2022 14:30:01 -0700 Subject: ignore carpet (this time stolen from floppa) + surprisingly annoying lateinit stuff --- .../kotlin/com/ambientaddons/features/dungeon/IgnoreCarpet.kt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/main/kotlin/com/ambientaddons/features/dungeon/IgnoreCarpet.kt (limited to 'src/main/kotlin/com/ambientaddons/features/dungeon') 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 -- cgit