svn commit: r561952 - in head/games/minetest: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Mon Jan 18 17:28:07 UTC 2021
Author: amdmi3
Date: Mon Jan 18 17:28:06 2021
New Revision: 561952
URL: https://svnweb.freebsd.org/changeset/ports/561952
Log:
- Apply upstream patch to fix errors from falling nodes
PR: 252758
Submitted by: scf at FreeBSD.org
Added:
head/games/minetest/files/patch-falling (contents, props changed)
Modified:
head/games/minetest/Makefile
Modified: head/games/minetest/Makefile
==============================================================================
--- head/games/minetest/Makefile Mon Jan 18 17:27:23 2021 (r561951)
+++ head/games/minetest/Makefile Mon Jan 18 17:28:06 2021 (r561952)
@@ -3,7 +3,7 @@
PORTNAME= minetest
PORTVERSION= 5.3.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= games
MAINTAINER= amdmi3 at FreeBSD.org
Added: head/games/minetest/files/patch-falling
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/minetest/files/patch-falling Mon Jan 18 17:28:06 2021 (r561952)
@@ -0,0 +1,21 @@
+commit aba8c3753162320c7cc8a66913ad82f4f1fd0d8b
+Author: SmallJoker <mk939 at ymail.com>
+Date: Thu Jul 30 19:03:48 2020 +0200
+
+ Falling: Fix error caused by missing param2
+
+ Falling nodes that were spawned prior the recent falling node changes did not require param2.
+ Default to param2 = 0 when none is found in the node data.
+
+diff --git builtin/game/falling.lua builtin/game/falling.lua
+index 714506a5f..4bfcca9e7 100644
+--- builtin/game/falling.lua
++++ builtin/game/falling.lua
+@@ -52,6 +52,7 @@ core.register_entity(":__builtin:falling_node", {
+ floats = false,
+
+ set_node = function(self, node, meta)
++ node.param2 = node.param2 or 0
+ self.node = node
+ meta = meta or {}
+ if type(meta.to_table) == "function" then
More information about the svn-ports-head
mailing list