Create

Create

86M Downloads

Crash anytime Belt is created above hopper/chute

iladrien-hub opened this issue ยท 5 comments

commented

Description

Getting a crash instantly whenever I make a Mechanical Belt that occupies the block above a chute or hopper

Reproduction

  • place chute
  • place the mechanical belt over it
  • ... crash :(

Details

  • mc 1.19.2
  • forge 43.2.0
  • windows 11
  • mods installed:
    • flywheel-forge-1.19.2-0.6.8.a
    • create-1.19.2-0.5.0.h

Traceback:

java.lang.NullPointerException: Cannot invoke "net.minecraft.core.BlockPos.m_123342_()" because "p_151571_" is null
	at net.minecraft.world.level.LevelHeightAccessor.m_151570_(LevelHeightAccessor.java:41) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:mixin,re:classloading}
	at net.minecraft.world.level.Level.m_46749_(Level.java:526) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
	at com.simibubi.create.content.contraptions.relays.belt.BeltTileEntity.initializeItemHandler(BeltTileEntity.java:171) ~[create-1.19.2-0.5.0.h.jar%23148!/:0.5.0.h] {re:classloading}
	at com.simibubi.create.content.contraptions.relays.belt.BeltTileEntity.getCapability(BeltTileEntity.java:186) ~[create-1.19.2-0.5.0.h.jar%23148!/:0.5.0.h] {re:classloading}
	at com.simibubi.create.content.logistics.block.chute.ChuteTileEntity.grabCapability(ChuteTileEntity.java:495) ~[create-1.19.2-0.5.0.h.jar%23148!/:0.5.0.h] {re:classloading}
	at com.simibubi.create.content.logistics.block.chute.ChuteTileEntity.handleInputFromAbove(ChuteTileEntity.java:326) ~[create-1.19.2-0.5.0.h.jar%23148!/:0.5.0.h] {re:classloading}
	at com.simibubi.create.content.logistics.block.chute.ChuteTileEntity.tick(ChuteTileEntity.java:150) ~[create-1.19.2-0.5.0.h.jar%23148!/:0.5.0.h] {re:classloading}
	at com.simibubi.create.foundation.tileEntity.SmartTileEntityTicker.m_155252_(SmartTileEntityTicker.java:15) ~[create-1.19.2-0.5.0.h.jar%23148!/:0.5.0.h] {re:classloading}
	at net.minecraft.world.level.chunk.LevelChunk$BoundTickingBlockEntity.m_142224_(LevelChunk.java:687) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:classloading}
	at net.minecraft.world.level.chunk.LevelChunk$RebindableTickingBlockEntityWrapper.m_142224_(LevelChunk.java:780) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:classloading}
	at net.minecraft.world.level.Level.m_46463_(Level.java:446) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:331) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:create.mixins.json:accessor.ServerLevelAccessor,pl:mixin:A}
	at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:866) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:806) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:84) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:654) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244) ~[client-1.19.2-20220805.130853-srg.jar%23151!/:?] {re:classloading,pl:accesstransformer:B}
	at java.lang.Thread.run(Thread.java:833) ~[?:?] {}

Full log: create-belt-crash.log

commented

Ran into this on the Direwolf20 version 1.1.1 modpack.

Placing a conveyor belt over an existing chute crashes the entire server.

It doesn't seem to care if the chute is placed after the belt is placed though.

commented
  • flywheel-forge-1.19.2-0.6.8
  • create-1.19.2-0.5.0.g

works ok....

commented

I've been having this same issue. Perhaps it has to do with the bit from the patch notes that says

Fixed Belts not offering a valid item handler until their first tick

That's the only change listed to belts in the patch notes.

commented

Ran into this on a custom pack on 1.18.2
Forge 40.2.0
Create 0.5.0.h
Flywheel 0.6.8.a

Also confirmed with just those 3 mods alone. (with a hopper and a smart chute, also had it happen when I placed a schematic)
I can place the chute/hopper after the belt just not before.

crash-2023-01-22_09.53.40-server.txt
crash-2023-01-22_09.52.14-server.txt

commented

Fixed by patch 0.5.0.i.