diff --git a/src/bugfix/SnifferEggBugFix.cpp b/src/bugfix/SnifferEggBugFix.cpp deleted file mode 100644 index 7ec5d1c..0000000 --- a/src/bugfix/SnifferEggBugFix.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include "Summary.h" - -#include - -#include -#include -#include - -namespace bbf { - -LL_TYPE_INSTANCE_HOOK( - BlockRemoveHook, - ll::memory::HookPriority::Normal, - Block, - &Block::onRemove, - void, - BlockSource& region, - BlockPos const& pos -) { - origin(region, pos); - if (getTypeName() == VanillaBlockTypeIds::SnifferEgg.getString()) { - region.removeFromRandomTickingQueue(pos, *this); - } -} - -struct SnifferEggBugFix::Impl { - ll::memory::HookRegistrar r; -}; - -void SnifferEggBugFix::call(bool enable) { - if (enable) { - if (!impl) impl = std::make_unique(); - } else { - impl.reset(); - } -} - -SnifferEggBugFix::SnifferEggBugFix() = default; -SnifferEggBugFix::~SnifferEggBugFix() = default; - -} // namespace bbf diff --git a/src/bugfix/Summary.h b/src/bugfix/Summary.h index 8baea1a..73bfe0f 100644 --- a/src/bugfix/Summary.h +++ b/src/bugfix/Summary.h @@ -35,12 +35,4 @@ struct ChunkSaveBugFix { ChunkSaveBugFix(); ~ChunkSaveBugFix(); }; -struct SnifferEggBugFix { - struct Impl; - std::unique_ptr impl; - - void call(bool); - SnifferEggBugFix(); - ~SnifferEggBugFix(); -}; } // namespace bbf diff --git a/src/core/Config.h b/src/core/Config.h index 9e961b5..3dbc716 100644 --- a/src/core/Config.h +++ b/src/core/Config.h @@ -7,7 +7,7 @@ namespace bbf { struct Config { - int version = 2; + int version = 1; struct BugFixes { ll::reflection::Dispatcher allay_teleport_bug_fix = @@ -15,7 +15,6 @@ struct Config { ll::reflection::Dispatcher bee_bugs_fix = true; ll::reflection::Dispatcher chunk_save_bug_fix = true; ll::reflection::Dispatcher hopper_bugs_fix = true; - ll::reflection::Dispatcher sniffer_egg_bug_fix = true; } bugfix{}; struct CmdSetting {