mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Better fix.
This commit is contained in:
parent
210a8f012e
commit
5983452347
1 changed files with 2 additions and 5 deletions
|
@ -182,11 +182,8 @@ class DistributedGardenPlotAI(DistributedLawnDecorAI):
|
|||
|
||||
def plantNothing(self, burntBeans, toon):
|
||||
# TODO: Fix exploit.
|
||||
estate = simbase.air.doId2do.get(self.getEstate())
|
||||
sendAvId = self.air.getAvatarIdFromSender()
|
||||
if sendAvId != toon or burntBeans > 8 or sendAvId not in estate.toons:
|
||||
self.air.writeServerEvent('suspicious', sendAvId, 'DistributedGardenPlotAI.plantNothing attempted exploit')
|
||||
else:
|
||||
av = simbase.air.doId2do.get(toon)
|
||||
av = self.air.doId2do.get(sendAvId)
|
||||
if av:
|
||||
av.takeMoney(burntBeans)
|
||||
self.planted = None
|
||||
|
|
Loading…
Reference in a new issue