Skip to content

Commit

Permalink
fixed bug with overgrown stuff just ruining server performance and al…
Browse files Browse the repository at this point in the history
…so modified the exterior to only let the doors open on land/crash
  • Loading branch information
Loqor committed Feb 1, 2024
1 parent 71b53af commit 24a7ed1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Developers: Creativious, Loqor, Duzo and Theo (`>:(`)
Developers: Creativious, Loqor, Duzo and Theo

Modelers/Textures: Tright, Magic Man

Animations: Monsterwail

Sounds: Doctor1922

Steam Console Original Design: DocArcane

Translations:
- French: lavachefrancaise
- German: hoooiii
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Radio, Duzo
### Contributions:
Bug1312, The24thDoctor, Poker, Vale, Ben

## Thank You's:
DocArcane, Craig (Suff), MagicMaan(?)

## Links
[Wiki](https://m-d-team.github.io/ait-fabric-1.20.1/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public void useOn(ServerWorld world, boolean sneaking, PlayerEntity player) {
return;
}

DoorData.useDoor(this.getTardis().get(), (ServerWorld) this.getWorld(), this.getPos(), (ServerPlayerEntity) player);
if(getTardis().get().getTravel().getState() == LANDED || getTardis().get().getTravel().getState() == CRASH) {
DoorData.useDoor(this.getTardis().get(), (ServerWorld) this.getWorld(), this.getPos(), (ServerPlayerEntity) player);
}
}

@Nullable
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mdteam/ait/tardis/data/OvergrownData.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void tick(MinecraftServer server) {
return;
}

if (!this.getExteriorPos().getWorld().getBiome(this.getTardis().get().getTravel().getPosition()).isIn(BiomeTags.IS_FOREST)) return;
//if (!this.getExteriorPos().getWorld().getBiome(this.getTardis().get().getTravel().getPosition()).isIn(BiomeTags.IS_FOREST)) return;

if (this.isOvergrown() || this.getTardis().get().getTravel().getState() != TardisTravel.State.LANDED) return;

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Special Thanks To: \n",
"Tryzo (Ben)",
"Suff99 (Craig)",
"DocArcane (Designed the original steam console)",
"Bug1312",
"Jayson",
"Creativious",
Expand Down

0 comments on commit 24a7ed1

Please sign in to comment.