We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f277982 commit 8944d58Copy full SHA for 8944d58
1 file changed
server/block/portal.go
@@ -47,7 +47,11 @@ func (p Portal) EncodeBlock() (string, map[string]any) {
47
48
// NeighbourUpdateTick ...
49
func (p Portal) NeighbourUpdateTick(pos, neighbour cube.Pos, tx *world.Tx) {
50
- axis := pos.Face(neighbour).Axis()
+ face, ok := pos.NeighbourFace(neighbour)
51
+ if !ok {
52
+ return
53
+ }
54
+ axis := face.Axis()
55
if axis != cube.Y && axis != p.Axis {
56
return
57
}
0 commit comments