DeckerMMIV / FS13_SoilManagement

A mod for Farming Simulator 2013 that adds additional abilities of field and soil management
7 stars 8 forks source link

Multiplayer, how to send cut-event even when cutFruitArea returns zero? #29

Open DeckerMMIV opened 10 years ago

DeckerMMIV commented 10 years ago

In multiplayer, the server's Cutter.updateTick() will only send a CutterAreaEvent to clients, if the Utils.cutFruitArea() returned a value greater than zero.

That poses a problem, as SoilMod's plugins for cutFruitArea could return zero due to low soil pH levels or other things, but the area was still cut (removed the foliage.)

An attempt at fixing this by returning a very small volume (0.0000001), just caused other and worse problems: http://fs-uk.com/forum/index.php?topic=163694.msg1096855#msg1096855