We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe0a8be commit e28e665Copy full SHA for e28e665
events/tag/src/module/block.rs
@@ -212,7 +212,7 @@ impl Module for BlockModule {
212
}
213
214
// replace with stone
215
- let Ok(previous) = blocks.set_block(event.position, BlockState::STONE) else {
+ let Ok(..) = blocks.set_block(event.position, BlockState::STONE) else {
216
return;
217
};
218
@@ -223,13 +223,12 @@ impl Module for BlockModule {
223
**xp = xp.saturating_add(xp_amount);
224
225
226
- let previous_kind = previous.to_kind().to_item_kind();
227
// Create a message about the broken block
228
- let msg = format!("previous {previous:?} → {previous_kind:?}");
+ let msg = format!("{xp_amount}xp");
229
230
let pkt = play::GameMessageS2c {
231
chat: msg.into_cow_text(),
232
- overlay: false,
+ overlay: true,
233
234
235
// Send the message to the player
0 commit comments