Don't forget to dirty collision on tile modification failure
This commit is contained in:
parent
ca21b29f92
commit
6f7f3800d3
@ -854,7 +854,10 @@ void WorldClient::handleIncomingPackets(List<PacketPtr> const& packets) {
|
||||
if (placeMaterial->layer == TileLayer::Foreground) {
|
||||
p.foreground.reset();
|
||||
p.foregroundHueShift.reset();
|
||||
if (p.collision) {
|
||||
p.collision.reset();
|
||||
dirtyCollision(RectI::withSize(modification.first, { 1, 1 }));
|
||||
}
|
||||
}
|
||||
else {
|
||||
p.background.reset();
|
||||
|
Loading…
Reference in New Issue
Block a user