File tree 1 file changed +1
-4
lines changed 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package block
3
3
import (
4
4
"github.com/df-mc/dragonfly/server/block/cube"
5
5
"github.com/df-mc/dragonfly/server/block/customblock"
6
- "github.com/df-mc/dragonfly/server/block/model"
7
6
"github.com/df-mc/dragonfly/server/item"
8
7
"github.com/df-mc/dragonfly/server/world"
9
8
"github.com/df-mc/dragonfly/server/world/sound"
@@ -224,9 +223,7 @@ func (g gravityAffected) Solidifies(cube.Pos, *world.Tx) bool {
224
223
225
224
// fall spawns a falling block entity at the given position.
226
225
func (g gravityAffected ) fall (b world.Block , pos cube.Pos , tx * world.Tx ) {
227
- _ , air := tx .Block (pos .Side (cube .FaceDown )).Model ().(model.Empty )
228
- _ , liquid := tx .Liquid (pos .Side (cube .FaceDown ))
229
- if air || liquid {
226
+ if replaceableWith (tx , pos .Side (cube .FaceDown ), b ) {
230
227
tx .SetBlock (pos , nil , nil )
231
228
opts := world.EntitySpawnOpts {Position : pos .Vec3Centre ()}
232
229
tx .AddEntity (tx .World ().EntityRegistry ().Config ().FallingBlock (opts , b ))
You can’t perform that action at this time.
0 commit comments