Fix bed to work with latest CanaryMod 1.2.0
This commit is contained in:
parent
6224845e8b
commit
b55be089f8
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ module.exports = function(Drone){
|
||||||
var head = this.setBlock(blocks.bed, bedDirections[this.dir] + 8, 0,0,1, false);
|
var head = this.setBlock(blocks.bed, bedDirections[this.dir] + 8, 0,0,1, false);
|
||||||
if (Drone.bountiful){
|
if (Drone.bountiful){
|
||||||
var prop = require('blockhelper').property;
|
var prop = require('blockhelper').property;
|
||||||
var BedHalf = Packages.net.canarymod.api.world.blocks.properties.BlockPropertyEnums.BedHalf;
|
var BedHalf = Packages.net.canarymod.api.world.blocks.properties.helpers.BedProperties.Half;
|
||||||
prop(foot)
|
prop(foot)
|
||||||
.set('facing',this.dir)
|
.set('facing',this.dir)
|
||||||
.set('part', BedHalf.FOOT);
|
.set('part', BedHalf.FOOT);
|
||||||
|
|
Reference in a new issue