Do not show a text warning when attempting to teleport from another dimension.
Bug founded in MagicalReturner.java class:
// Check if the player is in the overworld dimension
if (player.getCommandSenderWorld().dimension() != Level.OVERWORLD) {
player.displayClientMessage(Component.translatable("item.backtobed.magical_returner.condition.teleport_for_overworld"), true);
// Stop item usage and add cooldown
player.stopUsingItem();
player.getCooldowns().addCooldown(this, ITEM_COOLDOWN_TICKS);
return; <-- Needs return from `onUseTick` method
}
Do not show a text warning when attempting to teleport from another dimension.
Bug founded in
MagicalReturner.java
class: