mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-31 08:22:33 +00:00
Drop item when destroying blocks
Also make EntityType consts
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user