mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
CI: Check for typos
This commit is contained in:
21
.github/workflows/typos.yml
vendored
Normal file
21
.github/workflows/typos.yml
vendored
Normal file
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ pub fn default_registry() -> Arc<BlockRegistry> {
|
||||
}
|
||||
|
||||
pub async fn drop_loot(server: &Server, world: &Arc<World>, 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),
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
4
typos.toml
Normal file
4
typos.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[files]
|
||||
extend-exclude = [
|
||||
"assets/"
|
||||
]
|
||||
Reference in New Issue
Block a user