Skip to content

Commit 441efce

Browse files
committed
merge conflicts
1 parent 6343a42 commit 441efce

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

server/block/tnt.go

+12
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ func (t TNT) Ignite(pos cube.Pos, tx *world.Tx, _ world.Entity) bool {
4040
return true
4141
}
4242

43+
// NeighbourUpdateTick ...
44+
func (t TNT) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx) {
45+
t.RedstoneUpdate(pos, tx)
46+
}
47+
48+
// RedstoneUpdate ...
49+
func (t TNT) RedstoneUpdate(pos cube.Pos, tx *world.Tx) {
50+
if receivedRedstonePower(pos, tx) {
51+
t.Ignite(pos, tx, nil)
52+
}
53+
}
54+
4355
// Explode ...
4456
func (t TNT) Explode(_ mgl64.Vec3, pos cube.Pos, tx *world.Tx, _ ExplosionConfig) {
4557
spawnTnt(pos, tx, time.Second/2+time.Duration(rand.IntN(int(time.Second+time.Second/2))))

server/world/particle/block.go

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ type Lava struct{ particle }
8484
// DustPlume is a particle that shows up when an item is successfully inserted into a decorated pot.
8585
type DustPlume struct{ particle }
8686

87+
// Dispense is a particle that shows up when a dispenser or dropper dispenses an item.
88+
type Dispense struct{ particle }
89+
8790
// particle serves as a base for all particles in this package.
8891
type particle struct{}
8992

0 commit comments

Comments
 (0)