1
0
Fork 0

Remove unnecessary getName of player who placed block

main
Mari 4 years ago
parent 7fe4e3ce66
commit 46e2f8646b
  1. 1
      src/main/kotlin/net/deliciousreya/minecraftportal/MinecraftPortalPlugin.kt

@ -126,7 +126,6 @@ class MinecraftPortalPlugin() : JavaPlugin(), Listener
@EventHandler @EventHandler
fun onBlockPlaced(e: BlockPlaceEvent) { fun onBlockPlaced(e: BlockPlaceEvent) {
e.player.name
if (e.block.type in PortalFrame.State.INACTIVE.allValidBlocks) { if (e.block.type in PortalFrame.State.INACTIVE.allValidBlocks) {
val newPortal = findPortalFrameConnectedTo( val newPortal = findPortalFrameConnectedTo(
e.block, e.block,

Loading…
Cancel
Save