Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-Khar committed May 14, 2023
1 parent e3aff4d commit c3d6bcb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.network.ServerPlayNetworkHandler;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.network.ServerPlayerInteractionManager;
import net.minecraft.text.*;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.GameMode;
Expand All @@ -41,6 +42,7 @@ public abstract class ServerPlayerEntityMixin extends PlayerEntity {
@Shadow
public abstract boolean changeGameMode(GameMode gameMode);

@Shadow @Final public ServerPlayerInteractionManager interactionManager;
boolean holding;
ManhuntConfig config = ManhuntConfig.INSTANCE;
private long lastDelay = System.currentTimeMillis();
Expand Down Expand Up @@ -72,11 +74,10 @@ public void tick(CallbackInfo ci) {
ServerPlayerEntity trackedPlayer = world.getServer().getPlayerManager().getPlayer(item.getNbt().getCompound("Info").getString("Name"));
if (trackedPlayer != null) {
updateCompass((ServerPlayerEntity) (Object) this, item.getNbt(), trackedPlayer);
this.getItemCooldownManager().set(item.getItem(), config.getDelay() * 20);
this.getItemCooldownManager().set(item.getItem(), config.getAutomaticCompassDelay() * 20);
}
}
}

lastDelay = System.currentTimeMillis();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/data/manhunt/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"manhunt.item.tracker.switchrunner": "§7Compass is now pointing at §f%s",
"manhunt.item.tracker.norunners": "§cThere is no runners",
"manhunt.commands.delay": "§7Set delay to: §f%d §7seconds",
"manhunt.commands.setautomaticcompassupdate": "§7Set automaticcompassupdate to: §f%s",
"manhunt.commands.setautomaticcompassupdate": "§7Set automaticCompassUpdate to: §f%s",
"manhunt.commands.setautomaticcompassdelay": "§7Set delay to: §f%d §7seconds",
"manhunt.commands.runnerswinset": "§7Set runnersWinOnDragonDeath to: §f%s",
"manhunt.commands.cured": "§7Cured §f%d §7targets",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/data/manhunt/lang/ru_ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"manhunt.item.tracker.switchrunner": "§7Компас теперь указывает на §f%s",
"manhunt.item.tracker.norunners": "§cКоманда бегунов пуста",
"manhunt.commands.delay": "§7Задержка установлена на: %d секунд",
"manhunt.commands.setautomaticcompassupdate": "§7Set automaticcompassupdate to: §f%s",
"manhunt.commands.setautomaticcompassupdate": "§7automaticCompassUpdate теперь: §f%s",
"manhunt.commands.setautomaticcompassdelay": "§7Задержка установлена на: %d секунд",
"manhunt.commands.runnerswinset": "§7runnersWinOnDragonDeath теперь §f%s",
"manhunt.commands.cured": "§f%d §7игроков вылечено",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/data/manhunt/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"manhunt.item.tracker.switchrunner": "§7目标切换至§f%s",
"manhunt.item.tracker.norunners": "§c目标队伍成员为空",
"manhunt.commands.delay": "§7Set delay to: §f%d §7seconds",
"manhunt.commands.setautomaticcompassupdate": "§7Set automaticcompassupdate to: §f%s",
"manhunt.commands.setautomaticcompassupdate": "§7Set automaticCompassUpdate to: §f%s",
"manhunt.commands.setautomaticcompassdelay": "§7Set delay to: §f%d §7seconds",
"manhunt.commands.runnerswinset": "§7Set runnersWinOnDragonDeath to: §f%s",
"manhunt.commands.cured": "§7已治愈 §f%d §7名玩家",
Expand Down

0 comments on commit c3d6bcb

Please sign in to comment.