diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 000000000..666e38aab --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,21 @@ +name: Spelling + +permissions: + contents: read + +on: + push: + pull_request: + +env: + CLICOLOR: 1 + +jobs: + spelling: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v4 + - name: Spell Check Repo + uses: crate-ci/typos@v1.29.5 \ No newline at end of file diff --git a/pumpkin-world/src/generation/noise_router/proto_noise_router.rs b/pumpkin-world/src/generation/noise_router/proto_noise_router.rs index 21dec33d8..93cda967c 100644 --- a/pumpkin-world/src/generation/noise_router/proto_noise_router.rs +++ b/pumpkin-world/src/generation/noise_router/proto_noise_router.rs @@ -469,7 +469,7 @@ impl GlobalProtoNoiseRouter { // with functions being added later the least dense due to only adding one component to the // stack based on the AST hash. // - // This was determined visually and should probably be more programatically tested. + // This was determined visually and should probably be more programmatically tested. // E.g. everything with a flat cached gets cached on init so we dont care about where it // lives in memory diff --git a/pumpkin/src/block/mod.rs b/pumpkin/src/block/mod.rs index 295d7221c..04af30ca5 100644 --- a/pumpkin/src/block/mod.rs +++ b/pumpkin/src/block/mod.rs @@ -51,7 +51,7 @@ pub fn default_registry() -> Arc { } pub async fn drop_loot(server: &Server, world: &Arc, block: &Block, pos: &BlockPos) { - // TODO: Currently only the item block is droped, We should drop the loop table + // TODO: Currently only the item block is dropped, We should drop the loop table let height = EntityType::ITEM.dimension[1] / 2.0; let pos = Vector3::new( f64::from(pos.0.x) + 0.5 + rand::thread_rng().gen_range(-0.25..0.25), diff --git a/pumpkin/src/command/mod.rs b/pumpkin/src/command/mod.rs index 175cd1a66..d39f722d5 100644 --- a/pumpkin/src/command/mod.rs +++ b/pumpkin/src/command/mod.rs @@ -110,7 +110,7 @@ impl CommandSender<'_> { pub fn default_dispatcher() -> CommandDispatcher { let mut dispatcher = CommandDispatcher::default(); - // Zerp + // Zero dispatcher.register(pumpkin::init_command_tree(), PermissionLvl::Zero); dispatcher.register(help::init_command_tree(), PermissionLvl::Zero); dispatcher.register(list::init_command_tree(), PermissionLvl::Zero); diff --git a/pumpkin/src/net/packet/play.rs b/pumpkin/src/net/packet/play.rs index 60b1374b4..0b7115816 100644 --- a/pumpkin/src/net/packet/play.rs +++ b/pumpkin/src/net/packet/play.rs @@ -747,7 +747,7 @@ impl Player { return; } - // TODO: set as camera entity when specator + // TODO: set as camera entity when spectator let world = &entity.world.read().await; let player_victim = world.get_player_by_id(entity_id.0).await; diff --git a/typos.toml b/typos.toml new file mode 100644 index 000000000..8870be053 --- /dev/null +++ b/typos.toml @@ -0,0 +1,4 @@ +[files] +extend-exclude = [ + "assets/" +] \ No newline at end of file