Skip to content

Commit adc7e47

Browse files
committed
Maple is now ironwood
1 parent 6b07eab commit adc7e47

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/luke/bonusblocks/block/BlockBedroll.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package luke.bonusblocks.block;
22

3+
import luke.bonusblocks.item.BonusItems;
34
import net.minecraft.core.block.BlockBed;
45
import net.minecraft.core.block.entity.TileEntity;
56
import net.minecraft.core.entity.player.EntityPlayer;
67
import net.minecraft.core.enums.EnumDropCause;
78
import net.minecraft.core.enums.EnumSleepStatus;
8-
import net.minecraft.core.item.Item;
99
import net.minecraft.core.item.ItemStack;
10+
import net.minecraft.core.util.helper.Side;
1011
import net.minecraft.core.world.World;
1112
import net.minecraft.core.world.WorldSource;
1213
import net.minecraft.core.world.chunk.ChunkCoordinates;
@@ -19,7 +20,7 @@ public BlockBedroll(String key, int id) {
1920
this.setBounds();
2021
}
2122

22-
public boolean blockActivated(World world, int x, int y, int z, EntityPlayer player) {
23+
public boolean onBlockRightClicked(World world, int x, int y, int z, EntityPlayer player, Side side, double xPlaced, double yPlaced) {
2324
if (world.isClientSide) {
2425
return true;
2526
} else {
@@ -128,7 +129,7 @@ public static void setBedOccupied(World world, int i, int j, int k, boolean flag
128129
}
129130

130131
public ItemStack[] getBreakResult(World world, EnumDropCause dropCause, int x, int y, int z, int meta, TileEntity tileEntity) {
131-
return new ItemStack[]{new ItemStack(Item.bed)};
132+
return new ItemStack[]{new ItemStack(BonusItems.bedroll)};
132133
}
133134

134135
public int getPistonPushReaction() {

0 commit comments

Comments
 (0)