You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plots were being traded with: townBlock.setTown(town);
Which wouldn't reset the plot owner. It wouldn't remove all the signs etc.
So instead:
TownBlock townBlock = worldCoord.getTownBlock();
universe.removeTownBlock(townBlock);
try {
List<WorldCoord> selection = new ArrayList<WorldCoord>();
selection.add(worldCoord);
TownCommand.checkIfSelectionIsValid(town, selection, false, 0, false);
TownCommand.townClaim(town, worldCoord);
TownyUniverse.getDataSource().saveTown(town);
TownyUniverse.getDataSource().saveWorld(world);
//TODO
//PlotCommand.plotClaim(resident, worldCoord);
//TownyUniverse.getDataSource().saveResident(resident);
//TownyUniverse.getDataSource().saveWorld(world);
} catch (TownyException te) {
// Couldn't claim it.
}
The only foreseeable problem with this is that the regen code is stopped? Also, the
plot will start reverting?
Originally reported on Google Code with ID 282
Reported by
zrenfire
on 2011-09-22 15:42:29- _Attachment: [patch.txt](https://storage.googleapis.com/google-code-attachments/towny/issue-282/comment-0/patch.txt)_
The text was updated successfully, but these errors were encountered: