Skip to content

Commit 10497ef

Browse files
committed
3.1.5 fix events.connect/events.connection mismatch
1 parent 734e058 commit 10497ef

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
scriptcraft-version=3.1.4
1+
scriptcraft-version=3.1.5

release-notes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
RELEASE NOTES
22
=============
33

4+
3.1.5 Release (2015 05 31)
5+
--------------------------
6+
CanaryMod version : Add events.connect as synonym for events.connnection for backward-compatibility
7+
with 1.7.9 and book listings.
8+
49
3.1.4 Release (2015 05 09)
510
--------------------------
611
Various bug fixes and new 'inventory' module.

src/main/js/lib/events.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ var helper;
9999
if (__plugin.canary){
100100
module.exports = require('events-canary');
101101
helper = require('events-helper-canary');
102+
// backwards-compatibility with canarymod 1.7.9 for book listings
103+
if (helper.connection && !helper.connect){
104+
helper.connect = helper.connection;
105+
}
102106
} else {
103107
module.exports = require('events-bukkit');
104108
helper = require('events-helper-bukkit');

0 commit comments

Comments
 (0)