@@ -21,19 +21,19 @@ private void tick(CallbackInfo ci) {
21
21
22
22
ItemEntity self = (ItemEntity )(Object ) this ;
23
23
if (self .getStack ().getItem () == Items .SPONGE ) {
24
- if (((SpongeBlockInvoker ) Blocks .SPONGE ).invokeAbsorbWater (self .world , BlockPos .ofFloored (self .getPos ()))) {
25
- ItemEntity wetSponge = new ItemEntity (self .world , self .getX (), self .getY (), self .getZ (), new ItemStack (Items .WET_SPONGE , self .getStack ().getCount ()));
24
+ if (((SpongeBlockInvoker ) Blocks .SPONGE ).invokeAbsorbWater (self .getWorld () , BlockPos .ofFloored (self .getPos ()))) {
25
+ ItemEntity wetSponge = new ItemEntity (self .getWorld () , self .getX (), self .getY (), self .getZ (), new ItemStack (Items .WET_SPONGE , self .getStack ().getCount ()));
26
26
wetSponge .setVelocity (self .getVelocity ());
27
- self .world .spawnEntity (wetSponge );
27
+ self .getWorld () .spawnEntity (wetSponge );
28
28
self .discard ();
29
29
}
30
30
}
31
31
32
- if (self .getStack ().getItem () == Items .WET_SPONGE && self .world .getDimension ().ultrawarm () && ((ItemEntityAccessor ) self ).getAge () > 60 ) {
33
- ItemEntity sponge = new ItemEntity (self .world , self .getX (), self .getY (), self .getZ (), new ItemStack (Items .SPONGE , self .getStack ().getCount ()));
32
+ if (self .getStack ().getItem () == Items .WET_SPONGE && self .getWorld () .getDimension ().ultrawarm () && ((ItemEntityAccessor ) self ).getAge () > 60 ) {
33
+ ItemEntity sponge = new ItemEntity (self .getWorld () , self .getX (), self .getY (), self .getZ (), new ItemStack (Items .SPONGE , self .getStack ().getCount ()));
34
34
sponge .setVelocity (self .getVelocity ());
35
- self .world .spawnEntity (sponge );
36
- self .world .playSound (null , BlockPos .ofFloored (self .getPos ()), SoundEvents .BLOCK_FIRE_EXTINGUISH , SoundCategory .BLOCKS , 1.0F , (1.0F + self .world .getRandom ().nextFloat () * 0.2F ) * 0.7F );
35
+ self .getWorld () .spawnEntity (sponge );
36
+ self .getWorld () .playSound (null , BlockPos .ofFloored (self .getPos ()), SoundEvents .BLOCK_FIRE_EXTINGUISH , SoundCategory .BLOCKS , 1.0F , (1.0F + self .getWorld () .getRandom ().nextFloat () * 0.2F ) * 0.7F );
37
37
self .discard ();
38
38
}
39
39
}
0 commit comments