Bassebombecraft

Bassebombecraft

18.5k Downloads

Copy-paste fails in book of copy-paste

athrane opened this issue ยท 1 comments

commented

Effort to resolve #813 .

Stack trace:s

[25Oct2020 12:55:09.679] [Server thread/ERROR] [bassebombecraft.BassebombeCraft/]: java.lang.IllegalStateException: stream has already been operated upon or closed
	at java.util.stream.AbstractPipeline.<init>(AbstractPipeline.java:203)
	at java.util.stream.ReferencePipeline.<init>(ReferencePipeline.java:94)
	at java.util.stream.ReferencePipeline$StatelessOp.<init>(ReferencePipeline.java:618)
	at java.util.stream.ReferencePipeline$3.<init>(ReferencePipeline.java:187)
	at java.util.stream.ReferencePipeline.map(ReferencePipeline.java:186)
	at bassebombecraft.geom.GeometryUtils.captureBlockDirectives(GeometryUtils.java:74)
	at bassebombecraft.geom.GeometryUtils.captureRectangle(GeometryUtils.java:421)
	at bassebombecraft.item.action.build.CopyPasteBlocks.captureWorldContent(CopyPasteBlocks.java:359)
	at bassebombecraft.item.action.build.CopyPasteBlocks.updateState(CopyPasteBlocks.java:199)
	at bassebombecraft.item.action.build.CopyPasteBlocks.onItemUse(CopyPasteBlocks.java:146)

and

[25Oct2020 12:55:15.022] [Server thread/ERROR] [bassebombecraft.BassebombeCraft/]: java.lang.NullPointerException
	at bassebombecraft.geom.GeometryUtils.rotateCoordinatesAroundYAxis(GeometryUtils.java:137)
	at bassebombecraft.geom.GeometryUtils.rotateCoordinatesAroundYAxisAtOrigin(GeometryUtils.java:168)
	at bassebombecraft.item.action.build.CopyPasteBlocks.getCapturedContent(CopyPasteBlocks.java:485)
	at bassebombecraft.item.action.build.CopyPasteBlocks.updateState(CopyPasteBlocks.java:217)
	at bassebombecraft.item.action.build.CopyPasteBlocks.onItemUse(CopyPasteBlocks.java:146)
	at bassebombecraft.item.book.GenericBlockClickedBook.onItemUse(GenericBlockClickedBook.java:95)
	at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:609)
	at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:173)

commented

Resolved with: 51bd11b