
Advanced TreeCapitator
Advanced TreeCapitator enables fast tree felling on Paper 1.21. Sneak with an axe to chop entire trees, with configurable durability loss, world restrictions, and a reload command.
765
2
Список изменений
[1.5.2] — 2025-06-07
Fixed — Bug Fixes
| # | Bug | Details |
|---|---|---|
| 1 | api-version: '1.20' in plugin.yml while compiling against Paper 1.21.4 API | The plugin declared api-version: '1.20', which allowed Paper to load it on 1.20.x servers. Particle.BLOCK was renamed from Particle.BLOCK_CRACK in Paper 1.21+; running on a 1.20 server would produce a NoSuchFieldError at class-loading time, crashing the plugin on enable. Fixed by raising api-version to '1.21', which prevents the plugin from loading on incompatible servers and eliminates the runtime risk. |
| 2 | Sound.BLOCK_WOOD_BREAK played for Nether stems and Bamboo blocks | All felled trees used the overworld wood-break sound (Sound.BLOCK_WOOD_BREAK) regardless of log type. In vanilla Minecraft, Nether stems (CRIMSON_STEM, WARPED_STEM) use block.nether_wood.break and Bamboo blocks use block.bamboo_wood.break. Playing the wrong sound for these types is audibly incorrect and breaks immersion. Fixed by adding a fellSound(Material) helper that dispatches to Sound.BLOCK_NETHER_WOOD_BREAK for Nether-type stems, Sound.BLOCK_BAMBOO_WOOD_BREAK for Bamboo, and Sound.BLOCK_WOOD_BREAK for all overworld logs. Detection uses a name-prefix check so future variants are covered automatically. |
| 3 | cfg field in TreeCapitatorTask captured at construction time, not at execution time | TreeCapitatorTask stored the Config instance as a field initializer (private final Config cfg = getInstance().getPluginConfig()), which ran when new TreeCapitatorTask(...) was called inside onBlockBreak. Since the task executes one tick later via runTask(), a /atc reload issued in that one-tick window would leave the task using a stale pre-reload Config snapshot — the new configuration was silently ignored for that fell. Fixed by removing the field and fetching the config fresh at the top of doFell() via plugin.getPluginConfig(), always reflecting the most recent reload. |
Метаданные
Канал релиза
Release
Номер версии
1.5.2
Загрузчики
BukkitPaperPurpurSpigot
Версии игры
1.21–1.21.11
Загрузок
62
Дата публикации
1 нед. назад
