Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xNatsuri committed Jan 4, 2025
1 parent b7975c6 commit a75402a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion server/block/button.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (b Button) FuelInfo() item.FuelInfo {
return newFuelInfo(time.Second * 5)
}

// Source ...
// RedstoneSource ...
func (b Button) RedstoneSource() bool {
return true
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion server/block/redstone_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (r RedstoneBlock) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx
return false
}

// Source ...
// RedstoneSource ...
func (r RedstoneBlock) RedstoneSource() bool {
return true
}
Expand Down
9 changes: 2 additions & 7 deletions server/block/redstone_torch.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (t RedstoneTorch) EncodeBlock() (name string, properties map[string]any) {
return "minecraft:unlit_redstone_torch", map[string]any{"torch_facing_direction": face}
}

// Source ...
// RedstoneSource ...
func (t RedstoneTorch) RedstoneSource() bool {
return t.Lit
}
Expand All @@ -135,12 +135,7 @@ func (t RedstoneTorch) WeakPower(_ cube.Pos, face cube.Face, _ *world.Tx, _ bool
if !t.Lit {
return 0
}
if face == cube.FaceDown {
if t.Facing.Opposite() != cube.FaceDown {
return 15
}
return 0
}

if face != t.Facing.Opposite() {
return 15
}
Expand Down
2 changes: 1 addition & 1 deletion server/block/redstone_wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (r RedstoneWire) RedstoneUpdate(pos cube.Pos, tx *world.Tx) {
}
}

// Source ...
// RedstoneSource ...
func (RedstoneWire) RedstoneSource() bool {
return false
}
Expand Down

0 comments on commit a75402a

Please sign in to comment.