Fixed rotation for solar panels. Closes #1358
This commit is contained in:
parent
17f819e9c6
commit
1d18740215
1 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.util.EnumFacing;
|
import net.minecraft.util.EnumFacing;
|
||||||
|
import net.minecraft.util.Rotation;
|
||||||
import net.minecraft.util.text.TextFormatting;
|
import net.minecraft.util.text.TextFormatting;
|
||||||
import reborncore.api.IToolDrop;
|
import reborncore.api.IToolDrop;
|
||||||
import reborncore.api.power.EnumPowerTier;
|
import reborncore.api.power.EnumPowerTier;
|
||||||
|
@ -125,6 +126,11 @@ public class TileSolarPanel extends TilePowerAcceptor implements IToolDrop {
|
||||||
public ItemStack getToolDrop(final EntityPlayer p0) {
|
public ItemStack getToolDrop(final EntityPlayer p0) {
|
||||||
return new ItemStack(ModBlocks.SOLAR_PANEL, 1, this.panel.ordinal());
|
return new ItemStack(ModBlocks.SOLAR_PANEL, 1, this.panel.ordinal());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void rotate(Rotation rotationIn) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readFromNBT(NBTTagCompound tag) {
|
public void readFromNBT(NBTTagCompound tag) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue