File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ impl Module for BlockModule {
212
212
}
213
213
214
214
// replace with stone
215
- let Ok ( previous ) = blocks. set_block ( event. position , BlockState :: STONE ) else {
215
+ let Ok ( .. ) = blocks. set_block ( event. position , BlockState :: STONE ) else {
216
216
return ;
217
217
} ;
218
218
@@ -223,13 +223,12 @@ impl Module for BlockModule {
223
223
* * xp = xp. saturating_add ( xp_amount) ;
224
224
225
225
226
- let previous_kind = previous. to_kind ( ) . to_item_kind ( ) ;
227
226
// Create a message about the broken block
228
- let msg = format ! ( "previous {previous:?} → {previous_kind:?} " ) ;
227
+ let msg = format ! ( "{xp_amount}xp " ) ;
229
228
230
229
let pkt = play:: GameMessageS2c {
231
230
chat : msg. into_cow_text ( ) ,
232
- overlay : false ,
231
+ overlay : true ,
233
232
} ;
234
233
235
234
// Send the message to the player
You can’t perform that action at this time.
0 commit comments