9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-31 04:46:37 +00:00

添加1.21.5分支

This commit is contained in:
XiaoMoMi
2025-04-16 02:21:07 +08:00
parent 7ad10ad16a
commit 08894c7c0e
32 changed files with 1335 additions and 6 deletions

View File

@@ -83,7 +83,7 @@ public class BlockItemBehavior extends ItemBehavior {
// todo adventure check
if (player.isAdventureMode()) {
return InteractionResult.FAIL;
}
int gameTicks = player.gameTicks();

View File

@@ -67,8 +67,10 @@ public class FurnitureItemBehavior extends ItemBehavior {
}
Player player = context.getPlayer();
// todo adventure check
if (player.isAdventureMode()) {
return InteractionResult.FAIL;
}
int gameTicks = player.gameTicks();
if (!player.updateLastSuccessfulInteractionTick(gameTicks)) {