Drop item when destroying blocks

Also make EntityType consts
This commit is contained in:
Alexander Medvedev
2025-02-07 21:20:03 +01:00
parent 2e2fe83720
commit 8a5a0cdee8
32 changed files with 236 additions and 254 deletions

View File

@@ -97,7 +97,7 @@ impl CommandSender<'_> {
}
#[must_use]
pub fn world(&self) -> Option<&World> {
pub fn world(&self) -> Option<&Arc<World>> {
match self {
// TODO: maybe return first world when console
CommandSender::Console | CommandSender::Rcon(..) => None,