Skip to content

Commit faa3e38

Browse files
authored
Merge pull request #6 from FTBTeam/dev
Dev
2 parents e8655f9 + 5a0745f commit faa3e38

File tree

5 files changed

+53
-5
lines changed

5 files changed

+53
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [21.1.3]
8+
9+
### Added
10+
* Added ru_ru translation (thanks @BazZziliuS)
11+
*
12+
### Fixed
13+
* Fixed players returning from the Nether getting sent to base spawn instead of the portal they went through
14+
715
## [21.1.2]
816

917
### Added

common/src/main/java/dev/ftb/mods/ftbteambases/FTBTeamBases.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,10 @@ private static void handleNetherTravel(ServerPlayer player, ResourceKey<Level> o
200200

201201
if (newDim.equals(NETHER)) {
202202
// travelling to the Nether: if from our team dimension, store the player's location (in the from-dimension!) to later return there
203-
BlockPos portalPos = oldDim.location().getNamespace().equals(FTBTeamBases.MOD_ID) ?
204-
BlockPos.containing(player.xOld, player.yOld, player.zOld) :
205-
null;
203+
BlockPos portalPos = mgr.getBaseForPlayer(player)
204+
.filter(base -> oldDim.equals(base.dimension()))
205+
.map(base -> BlockPos.containing(player.xOld, player.yOld, player.zOld))
206+
.orElse(null);
206207
mgr.setPlayerNetherPortalLoc(player, portalPos);
207208
} else if (oldDim.equals(NETHER) && newDim.equals(OVERWORLD)) {
208209
// returning from the Nether: intercept this and send the player to their base portal instead

common/src/main/java/dev/ftb/mods/ftbteambases/util/RegionFileRelocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void start(BooleanConsumer onCompleted) {
9999
}
100100

101101
// called from main thread
102-
Path workDir = destDir.resolve("worktmp-" + Thread.currentThread().getId());
102+
Path workDir = destDir.resolve("worktmp-" + Thread.currentThread().threadId());
103103
try {
104104
if (!force) {
105105
// ensure none of the dest region MCA files exist yet
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"block.ftbteambases.portal": "Портальный блок",
3+
"ftbteambases.message.could_not_teleport": "Не удалось телепортироваться на базу команды: %s",
4+
"ftbteambases.message.missing_definition": "Неизвестное определение базы: %s",
5+
"ftbteambases.message.no_archived_bases": "Архивных баз пока нет",
6+
"ftbteambases.message.archived_bases": "%s архивных баз:",
7+
"ftbteambases.message.no_bases": "Баз команд пока нет",
8+
"ftbteambases.message.bases": "%s баз команды:",
9+
"ftbteambases.message.base_not_found": "База команды %s не найдена!",
10+
"ftbteambases.message.archived_base_not_found": "Архивная база %s не найдена!",
11+
"ftbteambases.message.purge_not_found": "Не найдено запланированное удаление для %s!",
12+
"ftbteambases.message.show_base_header": "Информация о базе команды %s",
13+
"ftbteambases.message.base_dimension": "Измерение: %s",
14+
"ftbteambases.message.base_extents": "Границы региона: %s",
15+
"ftbteambases.message.base_extents_block": "Границы блоков: %s",
16+
"ftbteambases.message.base_spawn_pos": "Позиция спауна игроков: %s",
17+
"ftbteambases.message.construction_in_progress": "Строительство базы для %s уже идёт!",
18+
"ftbteambases.message.creation_started": "Создаём вашу базу, ожидайте телепортации!",
19+
"ftbteambases.message.restored_yours": "Ваша старая база команды восстановлена из архива! Телепортируемся туда...",
20+
"ftbteambases.message.restored": "База команды '%s' восстановлена из архива.",
21+
"ftbteambases.message.player_in_party": "Владелец архивной базы '%s' состоит в группе. Сначала он должен выйти!",
22+
"ftbteambases.message.missing_dimension": "Не удалось найти измерение %s!",
23+
"ftbteambases.message.no_dimensions": "Нет командных измерений!",
24+
"ftbteambases.message.not_nether_team_base": "Входы в Ад для командных баз отключены в этой сборке",
25+
"ftbteambases.gui.show": "Показать",
26+
"ftbteambases.gui.restore": "Восстановить",
27+
"ftbteambases.gui.purge": "Удалить",
28+
"ftbteambases.gui.visit": "Посетить",
29+
"ftbteambases.gui.create": "Создать",
30+
"ftbteambases.gui.select": "Выбрать",
31+
"ftbteambases.gui.select_start": "Выберите базу",
32+
"ftbteambases.gui.select_dimension": "Выберите измерение",
33+
"ftbteambases.gui.by": "Автор: %s",
34+
"ftbteambases.gui.show_archived": "Показать архивные",
35+
"ftbteambases.gui.level_stats": "%s мс/тик (%s TPS) | Блок-сущности: %s | Сущности: %s | Загруженные чанки: %s",
36+
"ftbteambases.gui.block_entities": "Блок-сущности: %s",
37+
"ftbteambases.gui.entities": "Сущности: %s",
38+
"ftbteambases.gui.loaded_chunks": "Загруженные чанки: %s"
39+
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ minecraft_version=1.21.1
44
enabled_platforms=fabric,neoforge
55

66
archives_base_name=ftb-team-bases
7-
mod_version=21.1.2
7+
mod_version=21.1.3
88
maven_group=dev.ftb.mods
99
mod_author=FTB Team
1010
readable_name=FTB Team Bases

0 commit comments

Comments
 (0)