Skip to content

Commit a08bb4f

Browse files
committed
Block farming in water (TODO allow later when rice)
1 parent e750914 commit a08bb4f

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

openlife/server/TransitionHelper.hx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,13 @@ class TransitionHelper {
13601360
if (ServerSettings.DebugTransitionHelper) trace('TRANS: ${player.name + player.id} ${newParentTargetObjectData.name} is blocked by ice!');
13611361
return false;
13621362
}
1363+
else if (newTargetObjectData.description.contains('+biomeBlock13') && biome == 13) {
1364+
player.say('is blocked by water', true);
1365+
player.message = 'is blocked by water';
1366+
if (ServerSettings.DebugTransitionHelper) trace('TRANS: ${player.name + player.id} ${newParentTargetObjectData.name} is blocked by water!');
1367+
return false;
1368+
}
1369+
13631370
// take care to pile baskets // 292 Basket // 1605 Stack of Baskets
13641371
// if(handObjectData.id == 292 && this.target.id == 292){
13651372
if ((player.heldObject.parentId == 292 && player.heldObject.containedObjects.length > 0)

openlife/settings/ServerSettings.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,7 @@ class ServerSettings {
10801080

10811081
ObjectData.getObjectData(213).hungryWork = 3; // Deep Tilled Row
10821082
ObjectData.getObjectData(1136).hungryWork = 3; // Shallow Tilled Row
1083+
ObjectData.getObjectData(1136).description += ' +biomeBlock13'; // Shallow Tilled Row
10831084

10841085
ObjectData.getObjectData(511).hungryWork = 2; // Pond
10851086
ObjectData.getObjectData(1261).hungryWork = 2; // Canada Goose Pond with Egg

server.hl

347 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)