Block SetType Error

Discussion in 'Spigot Plugin Help' started by maruf61, May 3, 2015.

Thread Status:
Not open for further replies.
  1. Hey, i am working on a plugin. in the plugin when you place a specific its turns it same type as under of it. but while it doing that server thorws error. anybody knows what this error ?

    Code (Text):
    [18:27:27] [Server thread/INFO]: Attempted to place a tile entity ([email protected]) at 43,4,-358 (GRASS) where there was no entity tile!
    [18:27:27] [Server thread/INFO]: Chunk coordinates: 32,-368
    [18:27:27] [Server thread/WARN]: java.lang.Exception
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.Chunk.a(Chunk.java:791)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.World.setTileEntity(World.java:1984)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.ItemStack.placeItem(ItemStack.java:190)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PlayerInteractManager.interact(PlayerInteractManager.java:503)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:734)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13)
    [18:27:27] [Server thread/WARN]:     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    [18:27:27] [Server thread/WARN]:     at java.util.concurrent.FutureTask.run(Unknown Source)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:710)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:368)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:651)
    [18:27:27] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:554)
    [18:27:27] [Server thread/WARN]:     at java.lang.Thread.run(Unknown Source)
    Code (Text):
    Block b = evt.getBlock();
    .
    Block bd = b.getRelative(BlockFace.DOWN);
    .
    b.setType(bd.getType());
    .
     
     
    #1 maruf61, May 3, 2015
    Last edited: May 3, 2015
  2. Doesnt needed anymore i changed method. Thanks for help :)

    Lock please.
     
  3. Okay
     
  4. jflory7

    jflory7 Retired Moderator
    Retired Benefactor

    Thread locked per request
     
Thread Status:
Not open for further replies.