Skip to content

Commit

Permalink
Useless function.
Browse files Browse the repository at this point in the history
  • Loading branch information
mokhtarfa authored Jan 11, 2024
1 parent 23ea652 commit b40bc26
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server/block/note.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ func (n Note) EncodeNBT() map[string]any {
return map[string]any{"note": byte(n.Pitch)}
}

// Punch ...
func (n Note) Punch(pos cube.Pos, _ cube.Face, w *world.World, _ item.User) {
if _, ok := w.Block(pos.Side(cube.FaceUp)).(Air); !ok {
return
}
}

// Activate ...
func (n Note) Activate(pos cube.Pos, _ cube.Face, w *world.World, _ item.User, _ *item.UseContext) bool {
if _, ok := w.Block(pos.Side(cube.FaceUp)).(Air); !ok {
Expand Down

0 comments on commit b40bc26

Please sign in to comment.