适用于 Vault Hunters Minecraft 整合包
Bug 描述
有时当你挖掘金库宝箱(Living、Ornate、Gilded 或 Coin Pile)时,挖掘速度会出现异常,导致你无法以应有的速度破坏该宝箱。
当你在挖掘宝箱时处于下落状态或刚离开方块(包括半砖)时,就会发生此问题。该 Bug 会持续存在,直到你切换工具,或者尝试挖掘其他方块为止。
原因分析
这是由 Minecraft 游戏固有的机制引起的;当你没有站在实地上时(例如飞行、游泳或下落),游戏会降低你的挖掘速度。这是为了防止玩家在空中过快挖掘方块。
理论上来说,这意味着在第一次“破坏”宝箱后,游戏应该重置挖掘速度惩罚。
然而,在 Vault Hunters 中,挖掘宝箱/金币是以“切片”方式进行的,每次切片会从宝箱中弹出一个物品,但方块本身并未真正被破坏。因此,施加在第一个切片上的任何惩罚都会无限期地延续下去。
修复方案
本模组旨在通过简单地在下落状态下挖掘金库宝箱时抵消挖掘速度惩罚来修复此 Bug。
它忽略后续的检查(即不检查是否需要重置挖掘惩罚),因为这里正是利用了导致错误行为的 Bug 本身来修复它。
我们利用这个 Bug 来修复这个 Bug
此修复不适用于木箱或强盗箱,因为它们不受此 Bug 影响(我认为)。
要求客户端和服务器端都必须安装此模组。
- 如果客户端安装了但服务器未安装,客户端侧的宝箱看似会以全速被破坏,但在服务器端它们仍然存在;一两秒后会重新出现。(严格来说这在一定程度上仍然有帮助,因为一旦宝箱消失,客户端会立即开始挖掘其后面的方块,从而重置挖掘减速效果)
- 如果服务器安装了但客户端未安装,则不会发生任何变化。这不应阻止原版客户端加入服务器
For the Vault Hunters Minecraft Modpack
The Bug
Sometimes when you mine a vault chest (Living, Ornate, Gilded or Coin Pile), the mining speed will bug out and prevent you from breaking the chest as fast as it should.
This occurs when you are falling or have stepped off a block (including slabs) while mining the chest. The bug persists until you either change tools, or try to mine another block instead.
The Cause
This is caused by an inherent Minecraft game mechanic; when you are not on solid ground (e.g. flying, swimming, falling) the game will slow down your mining speed. This is to prevent players from mining blocks too quickly while in the air.
In theory, this means after the first "break" of the chest, the game should reset the mining speed penalty.
However, in Vault Hunters, mining chests/coins occurs in "slices", popping an item out of the chest with each slice, the block isn't actually broken on slicing. Thus, any penalty applied to the first slice will propagate indefinitely.
The Fix
This mod aims to fix this bug by simply negating the mining speed penalty when specifically mining vault chests if the player is falling.
It ignores subsequent checks (i.e. does not check if it needs to reset the mining penalty) since the bug that causes the incorrect behaviour in the first place is used here to fix it.
We use the bug to fix the bug
This does not apply to wooden chests or strongboxes, as they are not affected by the bug (I think).
Requires the mod to be present on both clients and servers.
- If a client has it but not the server, the chest will appear to break at full speed on the client side, but will still be there on the server; it will pop back into existence after a second or two. (Technically this still kind-of helps, as the client starts mining the block behind it the moment the chest disappears, which resets the mining slowdown)
- If a server has it but not the client, nothing will happen. It should not prevent vanilla clients from joining the server
评论 0
登录后参与评分
还没有评论,来抢沙发吧