Don't forget to dirty collision on tile modification failure

This commit is contained in:
Kae 2023-08-31 01:12:17 +10:00
parent ca21b29f92
commit 6f7f3800d3

View File

@ -854,7 +854,10 @@ void WorldClient::handleIncomingPackets(List<PacketPtr> const& packets) {
if (placeMaterial->layer == TileLayer::Foreground) {
p.foreground.reset();
p.foregroundHueShift.reset();
p.collision.reset();
if (p.collision) {
p.collision.reset();
dirtyCollision(RectI::withSize(modification.first, { 1, 1 }));
}
}
else {
p.background.reset();