mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
allow waypoints to face UP or DOWN
the block faces up or down, depending on the pitch of your cross-hair when you place the block down, just like screens closes #2364
This commit is contained in:
parent
904db35be2
commit
6182fde957
@ -11,6 +11,7 @@ import li.cil.oc.api.network.Visibility
|
||||
import li.cil.oc.common.EventHandler
|
||||
import li.cil.oc.server.network.Waypoints
|
||||
import net.minecraft.nbt.NBTTagCompound
|
||||
import net.minecraftforge.common.util.ForgeDirection
|
||||
|
||||
class Waypoint extends traits.Environment with traits.Rotatable with traits.RedstoneAware {
|
||||
val node = api.Network.newNode(this, Visibility.Network).
|
||||
@ -19,6 +20,8 @@ class Waypoint extends traits.Environment with traits.Rotatable with traits.Reds
|
||||
|
||||
var label = ""
|
||||
|
||||
override def validFacings: Array[ForgeDirection] = ForgeDirection.VALID_DIRECTIONS
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
@Callback(doc = """function(): string -- Get the current label of this waypoint.""")
|
||||
|
Loading…
x
Reference in New Issue
Block a user