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 {
212212 }
213213
214214 // 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 {
216216 return ;
217217 } ;
218218
@@ -223,13 +223,12 @@ impl Module for BlockModule {
223223 * * xp = xp. saturating_add ( xp_amount) ;
224224
225225
226- let previous_kind = previous. to_kind ( ) . to_item_kind ( ) ;
227226 // Create a message about the broken block
228- let msg = format ! ( "previous {previous:?} → {previous_kind:?} " ) ;
227+ let msg = format ! ( "{xp_amount}xp " ) ;
229228
230229 let pkt = play:: GameMessageS2c {
231230 chat : msg. into_cow_text ( ) ,
232- overlay : false ,
231+ overlay : true ,
233232 } ;
234233
235234 // Send the message to the player
You can’t perform that action at this time.
0 commit comments