diff --git a/src/main/scala/li/cil/oc/client/renderer/tileentity/HologramRenderer.scala b/src/main/scala/li/cil/oc/client/renderer/tileentity/HologramRenderer.scala index ee5e3ce39..0a1a1060f 100644 --- a/src/main/scala/li/cil/oc/client/renderer/tileentity/HologramRenderer.scala +++ b/src/main/scala/li/cil/oc/client/renderer/tileentity/HologramRenderer.scala @@ -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. diff --git a/src/main/scala/li/cil/oc/common/block/Screen.scala b/src/main/scala/li/cil/oc/common/block/Screen.scala index 68a3145ad..99c4bdd8a 100644 --- a/src/main/scala/li/cil/oc/common/block/Screen.scala +++ b/src/main/scala/li/cil/oc/common/block/Screen.scala @@ -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 {