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:
@@ -83,7 +83,7 @@ public class BlockItemBehavior extends ItemBehavior {
|
||||
|
||||
// todo adventure check
|
||||
if (player.isAdventureMode()) {
|
||||
|
||||
return InteractionResult.FAIL;
|
||||
}
|
||||
|
||||
int gameTicks = player.gameTicks();
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user