Skip to content

Commit

Permalink
Update hopper.go
Browse files Browse the repository at this point in the history
  • Loading branch information
RestartFU committed May 29, 2024
1 parent d12a505 commit 3690915
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/block/hopper.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ func (h Hopper) insertItem(pos cube.Pos, w *world.World) bool {
if stack.Empty() {
continue
}
fmt.Println(stack, slot)
sourceStack, sourceSlot = stack, slot
break
}
Expand Down Expand Up @@ -226,7 +225,7 @@ func (h Hopper) extractItem(pos cube.Pos, w *world.World) bool {
targetStack item.Stack
)
if e, ok := origin.(HopperExtractable); !ok {
for slot, stack := range origin.Inventory().Items() {
for slot, stack := range origin.Inventory().Slots() {
if stack.Empty() {
continue
}
Expand Down

0 comments on commit 3690915

Please sign in to comment.