Skip to content

Commit 24568fd

Browse files
authored
Experimental support for Drone on 1.15.2
1 parent 76dd318 commit 24568fd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/main/js/modules/drone/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,11 @@ function makeTypeIdAndDataSetter() {
353353
};
354354
} catch (e) {
355355
console.log(
356-
'Drone not available on this server - no setTypeIdAndData support'
356+
'Drone support is experimental on 1.15.2 and above, and may be broken...'
357357
);
358358
return function(block, typeId, data, applyPhysics) {
359-
throw new Error(
360-
`Drone not supported on versions > 1.15.1 - no setTypeIdAndData support`
361-
);
359+
block.setBlockData(data, applyPhysics);
360+
block.setType(typeId);
362361
};
363362
}
364363
}

0 commit comments

Comments
 (0)