Skip to content

Commit

Permalink
dragonfly/main.go: Remove debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Feb 9, 2024
1 parent f25a0df commit 1cb1df2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ package main
import (
"fmt"
"github.com/df-mc/dragonfly/server"
"github.com/df-mc/dragonfly/server/block"
"github.com/df-mc/dragonfly/server/item"
"github.com/df-mc/dragonfly/server/player"
"github.com/df-mc/dragonfly/server/player/chat"
"github.com/df-mc/dragonfly/server/world"
"github.com/pelletier/go-toml"
"github.com/sirupsen/logrus"
"os"
Expand All @@ -29,11 +25,7 @@ func main() {
srv.CloseOnProgramEnd()

srv.Listen()
for srv.Accept(func(p *player.Player) {
p.SetGameMode(world.GameModeSurvival)
p.Inventory().AddItem(item.NewStack(block.CraftingTable{}, 64))
p.Inventory().AddItem(item.NewStack(block.Planks{}, 64))
}) {
for srv.Accept(nil) {
}
}

Expand Down

0 comments on commit 1cb1df2

Please sign in to comment.