NavidK0 / Carbon

Carbon is a Spigot plugin which turns a spigot protocol hacked server (on 1.7.10) into a 1.8 server.
GNU Lesser General Public License v3.0
35 stars 19 forks source link

[Bug] Spawning in standing banner crashes client. #27

Closed mibby closed 10 years ago

mibby commented 10 years ago

Compiled source as of commit https://github.com/NavidK0/Carbon/commit/a04669e58fba396aa2267f9b1a3bf135b0801788

Spawned in standing banner ID per commit https://github.com/NavidK0/Carbon/commit/486714a34788bcef7c76720eb43f118577b82ebc

---- Minecraft Crash Report ----
// There are four lights!

Time: 10/4/14 8:00 AM
Description: Ticking entity

java.lang.NullPointerException: Ticking entity
    at amj.a(SourceFile:402)
    at ahb.k(SourceFile:260)
    at ahd.m(SourceFile:490)
    at cio.m(SourceFile:632)
    at xm.s_(SourceFile:1296)
    at ahd.s_(SourceFile:277)
    at cio.s_(SourceFile:105)
    at aqu.a(SourceFile:1406)
    at aqu.g(SourceFile:1384)
    at aqu.i(SourceFile:1277)
    at bsu.r(SourceFile:1824)
    at bsu.as(SourceFile:877)
    at bsu.a(SourceFile:314)
    at net.minecraft.client.main.Main.main(SourceFile:120)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at amj.a(SourceFile:402)
    at ahb.k(SourceFile:260)
    at ahd.m(SourceFile:490)
    at cio.m(SourceFile:632)
    at xm.s_(SourceFile:1296)
    at ahd.s_(SourceFile:277)
    at cio.s_(SourceFile:105)
    at aqu.a(SourceFile:1406)
    at aqu.g(SourceFile:1384)

-- Entity being ticked --
Details:
    Entity Type: null (cio)
    Entity ID: 41112
    Entity Name: mibby
    Entity's Exact location: 5489.95, 64.00, -5225.30
    Entity's Block location: 5489.00,64.00,-5226.00 - World: (5489,64,-5226), Chunk: (at 1,4,6 in 343,-327; contains blocks 5488,0,-5232 to 5503,255,-5217), Region: (10,-11; contains chunks 320,-352 to 351,-321, blocks 5120,0,-5632 to 5631,255,-5121)
    Entity's Momentum: 0.00, 0.00, 0.00
    Entity's Rider: ~~ERROR~~ NullPointerException: null
    Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
    at aqu.i(SourceFile:1277)
NavidK0 commented 10 years ago

Don't spawn in standing banners It's like spawning in the bottom half of a door, there's no item for the standing banner or wall banners, there's only a banner item by itself. The banner item creates a standing banner/wall banner depending on where you click.

Use the banner's item id.