Fix hitting only rooted tile did not break trees
This commit is contained in:
parent
baf04fe447
commit
58ec1b7933
@ -196,7 +196,10 @@ class ServerWorld private constructor(
|
|||||||
|
|
||||||
for ((pos, chunk, roots) in actualPositions) {
|
for ((pos, chunk, roots) in actualPositions) {
|
||||||
for (root in roots) {
|
for (root in roots) {
|
||||||
toDamageEntities.computeIfAbsent(root, Object2ObjectFunction { ObjectArraySet() }).add(pos)
|
val posList = toDamageEntities.computeIfAbsent(root, Object2ObjectFunction { ObjectArraySet() })
|
||||||
|
posList.add(pos)
|
||||||
|
posList.addAll(root.roots)
|
||||||
|
posList.add(root.tilePosition)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isBackground) {
|
if (!isBackground) {
|
||||||
|
Loading…
Reference in New Issue
Block a user