Formatting.

This commit is contained in:
Florian Nücke 2014-06-11 14:08:56 +02:00
parent a04732e5f0
commit a8de31b577
2 changed files with 13 additions and 13 deletions

View File

@ -280,8 +280,8 @@ object HologramRenderer extends TileEntitySpecialRenderer with Callable[Int] wit
// Flip the buffer to only fill in as much data as necessary.
dataBuffer.flip()
// This buffer can be updated quite frequently, so dynamic seems sensible.
GL15.glBufferData(GL15.GL_ARRAY_BUFFER, dataBuffer, GL15.GL_DYNAMIC_DRAW)
// This buffer can be updated quite frequently, so dynamic seems sensible.
GL15.glBufferData(GL15.GL_ARRAY_BUFFER, dataBuffer, GL15.GL_DYNAMIC_DRAW)
}
else {
// Empty hologram.

View File

@ -311,17 +311,17 @@ abstract class Screen(val parent: SimpleDelegator) extends RedstoneAware with Si
if (BuildCraft.holdsApplicableWrench(player, x, y, z)) false
else world.getTileEntity(x, y, z) match {
case screen: tileentity.Screen if screen.hasKeyboard && !player.isSneaking =>
// Yep, this GUI is actually purely client side. We could skip this
// if, but it is clearer this way (to trigger it from the server we
// would have to give screens a "container", which we do not want).
if (world.isRemote) {
player.openGui(OpenComputers, GuiType.Screen.id, world, x, y, z)
}
true
case screen: tileentity.Screen if screen.tier > 0 && side == screen.facing =>
screen.click(player, hitX, hitY, hitZ)
case _ => false
}
// Yep, this GUI is actually purely client side. We could skip this
// if, but it is clearer this way (to trigger it from the server we
// would have to give screens a "container", which we do not want).
if (world.isRemote) {
player.openGui(OpenComputers, GuiType.Screen.id, world, x, y, z)
}
true
case screen: tileentity.Screen if screen.tier > 0 && side == screen.facing =>
screen.click(player, hitX, hitY, hitZ)
case _ => false
}
override def walk(world: World, x: Int, y: Int, z: Int, entity: Entity) =
if (!world.isRemote) world.getTileEntity(x, y, z) match {