Reflection Enchantments Bug
SvCpu opened this issue · 3 comments
Shield Reflection crashes when a Shulker bullet is fired from a dead Shulker
Mod version: 1.3.1-1.18.2
Log when the server crashes:
[11:30:39] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.class_148: Ticking entity
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:911) ~[server-intermediary.jar:?]
at net.minecraft.class_3176.method_3813(class_3176.java:322) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:851) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:273) ~[server-intermediary.jar:?]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.class_1297.method_5643(net.minecraft.class_1282, float)" because "attacker" is null
at com.github.crimsondawn45.basicshields.module.VanillaModule.lambda$registerContent$0(VanillaModule.java:66) ~[BasicShields-1.3.1-1.18.2(remake).jar:?]
at com.github.crimsondawn45.fabricshieldlib.lib.event.ShieldBlockCallback.lambda$static$0(ShieldBlockCallback.java:22) ~[FabricShieldLib-1.5.3-1.18.jar:?]
at net.minecraft.class_1309.handler$bkl000$damage(class_1309.java:11066) ~[server-intermediary.jar:?]
at net.minecraft.class_1309.method_5643(class_1309.java) ~[server-intermediary.jar:?]
at net.minecraft.class_1657.method_5643(class_1657.java:925) ~[server-intermediary.jar:?]
at net.minecraft.class_3222.method_5643(class_3222.java:704) ~[server-intermediary.jar:?]
at net.minecraft.class_1678.method_7454(class_1678.java:304) ~[server-intermediary.jar:?]
at net.minecraft.class_1676.method_7488(class_1676.java:148) ~[server-intermediary.jar:?]
at net.minecraft.class_1678.method_7488(class_1678.java:322) ~[server-intermediary.jar:?]
at net.minecraft.class_1678.method_5773(class_1678.java:237) ~[server-intermediary.jar:?]
at net.minecraft.class_3218.method_18762(class_3218.java:702) ~[server-intermediary.jar:?]
at net.minecraft.class_1937.method_18472(class_1937.java:485) ~[server-intermediary.jar:?]
at net.minecraft.class_3218.method_31420(class_3218.java:363) ~[server-intermediary.jar:?]
at net.minecraft.class_5574.method_31791(class_5574.java:54) ~[server-intermediary.jar:?]
at net.minecraft.class_3218.method_18765(class_3218.java:331) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:907) ~[server-intermediary.jar:?]
... 5 more
[11:30:39] [Server thread/ERROR]: This crash report has been saved to: /opt/minecraft/fabric1.18.2/./crash-reports/crash-2022-07-03_11.30.39-server.txt
crash-reports(crash-2022-07-03_11.30.39-server.txt):
---- Minecraft Crash Report ----
// Who set us up the TNT?
Time: 2022/7/3 上午11:30
Description: Ticking entity
java.lang.NullPointerException: Cannot invoke "net.minecraft.class_1297.method_5643(net.minecraft.class_1282, float)" because "attacker" is null
at com.github.crimsondawn45.basicshields.module.VanillaModule.lambda$registerContent$0(VanillaModule.java:66)
at com.github.crimsondawn45.fabricshieldlib.lib.event.ShieldBlockCallback.lambda$static$0(ShieldBlockCallback.java:22)
at net.minecraft.class_1309.handler$bkl000$damage(class_1309.java:11066)
at net.minecraft.class_1309.method_5643(class_1309.java)
at net.minecraft.class_1657.method_5643(class_1657.java:925)
at net.minecraft.class_3222.method_5643(class_3222.java:704)
at net.minecraft.class_1678.method_7454(class_1678.java:304)
at net.minecraft.class_1676.method_7488(class_1676.java:148)
at net.minecraft.class_1678.method_7488(class_1678.java:322)
at net.minecraft.class_1678.method_5773(class_1678.java:237)
at net.minecraft.class_3218.method_18762(class_3218.java:702)
at net.minecraft.class_1937.method_18472(class_1937.java:485)
at net.minecraft.class_3218.method_31420(class_3218.java:363)
at net.minecraft.class_5574.method_31791(class_5574.java:54)
at net.minecraft.class_3218.method_18765(class_3218.java:331)
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:907)
at net.minecraft.class_3176.method_3813(class_3176.java:322)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:851)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:273)
at java.base/java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server thread
Stacktrace:
at com.github.crimsondawn45.basicshields.module.VanillaModule.lambda$registerContent$0(VanillaModule.java:66)
at com.github.crimsondawn45.fabricshieldlib.lib.event.ShieldBlockCallback.lambda$static$0(ShieldBlockCallback.java:22)
at net.minecraft.class_1309.handler$bkl000$damage(class_1309.java:11066)
at net.minecraft.class_1309.method_5643(class_1309.java)
at net.minecraft.class_1657.method_5643(class_1657.java:925)
at net.minecraft.class_3222.method_5643(class_3222.java:704)
at net.minecraft.class_1678.method_7454(class_1678.java:304)
at net.minecraft.class_1676.method_7488(class_1676.java:148)
at net.minecraft.class_1678.method_7488(class_1678.java:322)
at net.minecraft.class_1678.method_5773(class_1678.java:237)
at net.minecraft.class_3218.method_18762(class_3218.java:702)
at net.minecraft.class_1937.method_18472(class_1937.java:485)
at net.minecraft.class_3218.method_31420(class_3218.java:363)
at net.minecraft.class_5574.method_31791(class_5574.java:54)
at net.minecraft.class_3218.method_18765(class_3218.java:331)
-- Entity being ticked --
Details:
Entity Type: minecraft:shulker_bullet (net.minecraft.class_1678)
Entity ID: 22419
Entity Name: Shulker Bullet
Entity's Exact location: 1328.34, 160.61, 1666.95
Entity's Block location: World: (1328,160,1666), Section: (at 0,0,2 in 83,10,104; chunk contains blocks 1328,0,1664 to 1343,255,1679), Region: (2,3; contains chunks 64,96 to 95,127, blocks 1024,0,1536 to 1535,255,2047)
Entity's Momentum: 0.00, 0.03, -0.18
Entity's Passengers: []
Entity's Vehicle: null
Stacktrace:
at net.minecraft.class_1937.method_18472(class_1937.java:485)
at net.minecraft.class_3218.method_31420(class_3218.java:363)
at net.minecraft.class_5574.method_31791(class_5574.java:54)
at net.minecraft.class_3218.method_18765(class_3218.java:331)
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:907)
at net.minecraft.class_3176.method_3813(class_3176.java:322)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:851)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:273)
at java.base/java.lang.Thread.run(Unknown Source)
-- Affected level --
Details:
All players: 1 total; [class_3222['SvCpu'/18480, l='ServerLevel[world]', x=1328.87, y=160.50, z=1666.29]]
Chunk stats: 4225
Level dimension: minecraft:the_end
Derived: true
Level spawn location: World: (0,111,0), Section: (at 0,15,0 in 0,6,0; chunk contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 69168433 game time, 7750730 day time
Level name: world
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Level weather: Rain time: 9057 (now: false), thunder time: 97899 (now: false)
Known server brands: fabric
Level was modded: true
Level storage version: 0x04ABD - Anvil
Stacktrace:
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:907)
at net.minecraft.class_3176.method_3813(class_3176.java:322)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:851)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:273)
at java.base/java.lang.Thread.run(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.18.2
Minecraft Version ID: 1.18.2
Operating System: Linux (arm) version 5.10.63-v8+
Java Version: 17.0.3, Eclipse Adoptium
Java VM Version: OpenJDK Server VM (mixed mode, sharing), Eclipse Adoptium
Memory: 536931184 bytes (512 MiB) / 2147483648 bytes (2048 MiB) up to 2147483648 bytes (2048 MiB)
CPUs: 4
Processor Vendor: aarch64
Processor Name:
Identifier: aarch64 Family 8 Model 0xd08 Stepping r0x0p3
Microarchitecture: unknown
Frequency (GHz): -0.00
Number of physical packages: 1
Number of physical CPUs: 1
Number of logical CPUs: 4
Graphics card #0 name: unknown
Graphics card #0 vendor: unknown
Graphics card #0 VRAM (MB): 0.00
Graphics card #0 deviceId: unknown
Graphics card #0 versionInfo: unknown
Virtual memory max (MB): 3980.05
Virtual memory used (MB): 3191.95
Swap memory total (MB): 100.00
Swap memory used (MB): 0.00
JVM Flags: 11 total; -Xmx2G -Xms2G -XX:MaxGCPauseMillis=100 -XX:ParallelGCThreads=4 -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:-UseGCOverheadLimit -Xnoclassgc -XX:LargePageSizeInBytes=4m
Fabric Mods:
additionaladditions: Additional Additions 4.0.5
libgui: LibGui 5.1.0+1.18
jankson: Jankson 4.0.0+j1.2.0
blue_endless_jankson: jankson 1.2.1
libninepatch: LibNinePatch 1.1.0
additionalbars: Additional Bars 3.0.0
adorn: Adorn 3.5.0+1.18.2
advdebug: Advancements Debug 2.3.0
adventurez: AdventureZ 1.4.10
alternate-current: Alternate Current 1.3.0
appleskin: AppleSkin 2.4.0+mc1.18.2
architectury: Architectury 4.4.56
arclight: Arclight 0.2-1.18.2
awesomedungeon: Awesome Dungeon 2.0.8
awesomedungeonend: Awesome Dungeon Edition end 1.0.1
awesomedungeonnether: Awesome Dungeon Edition Nether 1.0.1
awesomeflooring: Awesome Flooring 2.0.0
balm-fabric: Balm 3.1.0+0
basicshields: Basic Shields [Fabric] 1.3.1-1.18.2
crowdin-translate: CrowdinTranslate 1.4+1.18.2
bclib: BCLib 1.4.7
betterdeserttemples: YUNG's Better Desert Temples 1.18.2-Fabric-1.1.0
betterdungeons: YUNG's Better Dungeons 1.18.2-Fabric-2.1.0
betterend: Better End 1.1.1
bettermineshafts: YUNG's Better Mineshafts 1.18.2-Fabric-2.1.3
bettersafebed: BetterSafeBed 1.18-fabric-a
bettervillage: Better Village 1.0.1
blast: BLAST 1.9.1
bosses_of_mass_destruction: Bosses of Mass Destruction (Beta) 1.3.7-1.18.2
maelstrom_library: Maelstrom Library 1.2.4-1.18.2
multipart_entities: MultipartEntities 1.1.5-1.18.2
byg: Oh The Biomes You'll Go 1.4
cacao: Croptopia's Chocolaterie 1.1
cakemod: Cake Mod 1.3.1
cardinal-components: Cardinal Components API 4.1.4
cardinal-components-chunk: Cardinal Components API (chunks) 4.1.4
cardinal-components-level: Cardinal Components API (world saves) 4.1.4
cardinal-components-scoreboard: Cardinal Components API (scoreboard) 4.1.4
cardinal-components-world: Cardinal Components API (worlds) 4.1.4
chalk: Chalk 2.0.0+1.18.2
chunky: Chunky 1.2.164
cloth-api: Cloth API 3.2.64
cloth-client-events-v0: Cloth Client Events v0 3.2.64
cloth-common-events-v1: Cloth Common Events v1 3.2.64
cloth-datagen-api-v1: Cloth Datagen v1 3.2.64
cloth-utils-v1: Cloth Utils v1 3.2.64
cloth-config: Cloth Config v6 6.2.62
cloth-basic-math: cloth-basic-math 0.6.1
collective-fabric: Collective (Fabric) 4.26
fiber: fiber 0.23.0-2
comforts: Comforts 1.1.2-1.18.2
create: Create mc1.18.2_v0.4.1+637
com_google_code_findbugs_jsr305: jsr305 3.0.2
fake-player-api: Fake Player API 0.3.0
forge_tags: Forge Tags 2.1
milk: Milk Lib 0.3.2
dripstone_fluid_lib: Dripstone Fluid Lib 1.2.0
porting_lib: Porting Lib 1.1.317-beta+1.18.2-dev.7ad1f24
com_github_llamalad7_mixinextras: MixinExtras 0.0.10
serialization_hooks: Serialization Hooks 0.2.0+1.18.f5d4aa6
reach-entity-attributes: Reach Entity Attributes 2.1.1
registrate-fabric: Registrate for Fabric MC1.18.2-1.0.3
croptopia: Croptopia 2.0.5
com_typesafe_config: config 1.4.1
io_leangen_geantyref_geantyref: geantyref 1.3.11
org_spongepowered_configurate-core: configurate-core 4.1.2
org_spongepowered_configurate-hocon: configurate-hocon 4.1.2
decorative_blocks: Decorative Blocks 2.1.0
dragondropselytra-fabric: Dragon Drops Elytra (Fabric) 1.4
dragonloot: DragonLoot 1.0.10
dualwield: DualWield 2.1
dynview: Dynamic View Mod 1.18.2-2.1
elevator233: squid233's Elevator 0.2.0
enchantinginfuser: Enchanting Infuser 3.2.0
expanded_armor_enchanting: Expanded Armor Enchanting 1.0.2
fabric: Fabric API 0.56.0+1.18.2
fabric-api-base: Fabric API Base 0.4.4+d7c144a860
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.2+2373a54560
fabric-biome-api-v1: Fabric Biome API (v1) 8.0.4+7b0f312660
fabric-command-api-v1: Fabric Command API (v1) 1.1.9+d7c144a860
fabric-commands-v0: Fabric Commands (v0) 0.2.8+b4f4f6cd60
fabric-containers-v0: Fabric Containers (v0) 0.1.22+d7c144a860
fabric-content-registries-v0: Fabric Content Registries (v0) 3.1.0+6f01bfd860
fabric-convention-tags-v1: Fabric Convention Tags 1.0.1+474e4f7960
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.1+ee261a3e60
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 3.0.0+9fcb91d260
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.19+ffb2c71e60
fabric-entity-events-v1: Fabric Entity Events (v1) 1.4.8+d7c144a860
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.19+d7c144a860
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.18+d7c144a860
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.13+d7c144a860
fabric-item-api-v1: Fabric Item API (v1) 1.5.1+6c4e5d0960
fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.13+91896a4960
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.1.0+cc71601c60
fabric-loot-api-v2: Fabric Loot API (v2) 1.0.0+e747827960
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.0+e747827960
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.3+cc71601c60
fabric-networking-api-v1: Fabric Networking API (v1) 1.0.22+e6b169eb60
fabric-networking-v0: Fabric Networking (v0) 0.3.9+b4f4f6cd60
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 2.1.2+032c981d60
fabric-particles-v1: Fabric Particles (v1) 0.2.12+526dc1ac60
fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.9.9+0d9ab37260
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.7+d7c144a860
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 2.0.2+54e5b2ec60
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.0.3+91b7aa6660
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.5.1+e747827960
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.2.1+1f6558e860
fabric-transfer-api-v1: Fabric Transfer API (v1) 1.6.3+f4563ac860
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 1.1.0+e747827960
fabric-language-kotlin: Fabric Language Kotlin 1.7.4+kotlin.1.6.21
org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.6.21
org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.6.21
org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.6.21
org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.6.21
org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.6.1
org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.6.1
org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.3.2
org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.3.2
org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.3.2
fabricloader: Fabric Loader 0.14.8
fabricshieldlib: Fabric Shield Lib 1.5.3-1.18
mm: Manningham Mills 2.3
fallingtree: FallingTree 3.5.1
farsighted-mobs: Farsighted Mobs 1.1-1.18
ferritecore: FerriteCore 4.2.1
flytre_lib: FlytreLib 1.8.0
forgeconfigapiport: Forge Config API Port 3.2.0
geckolib3: Geckolib 3.0.42
com_eliotlash_mclib_mclib: mclib 18
com_eliotlash_molang_molang: molang 18
geodes: More Geodes 1.4.2
glassdoor: Glass Doors 2.1.0+1.18
graveyard: The Graveyard 1.9
omega-config: OmegaConfig 1.2.2-1.18.1
grindenchantments: Grind Enchantments 1.6.3+1.18.2
guild: Guild 0.4.0
harvest_scythes: Harvest Scythes 2.5.1
helpwanted: Help Wanted 1.1.4
hwg: Happiness is a Warm Gun 1.1.11
icarus: Icarus 1.11
inventorytotem-fabric: Inventory Totem (Fabric) 1.5
java: OpenJDK Server VM 17
libraryferret: Library Ferret 1.0.3
lithium: Lithium 0.7.10
logicgates: Logic Gates 1.0.1
logprot: Logprot Mod 1.18-1.6
magnumtorch: Magnum Torch 3.1.2
mcwbridges: Macaw's Bridges 2.0.3
mcwdoors: Macaw's Doors 1.0.6
mcwfences: Macaw's Fences and Walls 1.0.5
mcwroofs: Macaw's Roofs 2.1.2
medievalweapons: Medieval Weapons 1.2.0
minecraft: Minecraft 1.18.2
miningutility: Mining Utility 1.2.1+1.18
mobs_attempt_parkour: Mobs Attempt Parkour 0.2.5-1.18.2
morevillagers-fabric: MoreVillagersFabric 3.2.0-SNAPSHOT
mtmechs: Magitek Mechs 1.0.12
naturescompass: Nature's Compass 1.18.2-2.0.3-fabric
nodami: No Damage Immunity(NoDamI) Reload Mod 1.0.0
org_yaml_snakeyaml: snakeyaml 1.30
nomadbooks: Nomad Books 1.0.1
nyfsquiver: Nyf's Quivers Fabric-0.5.0-1.18.2
owo: oωo 0.7.2+1.18
patchouli: Patchouli 1.18.2-67-FABRIC
plushies: Plushie Mod 1.2
polaroidcamera: PolaroidCamera 1.2.9
polymorph: Polymorph 0.0.21-1.18.2
cardinal-components-block: Cardinal Components API (blocks) 4.1.4
cardinal-components-item: Cardinal Components API (items) 4.1.4
publicguiannouncement: Public Gui Announcement 3.2.0.1
puzzleslib: Puzzles Lib 3.3.1
ring_of_attraction: Ring Of Attraction 1.2.24
skylorlib: SkyLib 1.3.35
sleepwarp: SleepWarp 1.1.1+1.18.2
smoothchunk: Smooth chunk save Mod 1.18.2-1.9
smwyg: Show Me What You Got 1.0.1
softerhaybales-fabric: Softer Hay Bales (Fabric) 1.5
soultrap: Soul Trap 1.18.2-1.0.0
spellbound: Spellbound 1.9.1
squirtingsyringe: Squirting syringe 0.8
starlight: Starlight 1.0.2+fabric.89b8d9f
starterkit-fabric: Starter Kit (Fabric) 3.1
statues: Statues 1.1
techreborn: Tech Reborn 5.2.0
reborncore: Reborn Core 5.2.0
team_reborn_energy: Energy 2.2.0
terrablender: TerraBlender 1.1.0.102
com_electronwill_night-config_core: core 3.6.4
com_electronwill_night-config_toml: toml 3.6.4
tokenablefurnaces: Tokenable Furnaces 1.1.6
totw_additions: Towers of the Wild: Additions 1.2.1
tradingpost: Trading Post 3.2.0
cardinal-components-base: Cardinal Components API (base) 4.1.4
cardinal-components-entity: Cardinal Components API (entities) 4.1.4
treeaxe: The TreeAxe 1.1.40
pugh_tools: Pugh Tools 1.2.5
trinkets: Trinkets 3.3.1
villagernames-fabric: Villager Names (Fabric) 3.5
visualworkbench: Visual Workbench 3.3.0
vmp: Very Many Players 0.2.0+beta.3.17
waystones: Waystones 10.1.0
xp_storage: XP Storage 1.4.3+1.18
xtraarrows: Xtra Arrows 1.8.3
yungsapi: YUNG's API 1.18.2-Fabric-2.0.8
Server Running: true
Player Count: 2 / 4; [class_3222['SvCpu'/18480, l='ServerLevel[world]', x=1328.87, y=160.50, z=1666.29], class_3222['Furrysamuel'/22425, l='ServerLevel[world]', x=-306.72, y=63.00, z=351.81]]
Data Packs: vanilla, Fabric Mods, minecraft/croptop
World Generation: Stable
Is Modded: Definitely; Server brand changed to 'fabric'
Type: Dedicated Server (map_server.txt)
This is caused by lack of a null check in reflection enchantment this will be fixed in 1.4.0 full release
Would also very much like a backport of this fix to 1.18.2 if possible. This behavior affects any damage that is not directly caused by a player or entity. Like fire and poison damage to give some examples.
The server doesn't crash, though the player gets kicked and an error message pops up that is very similar to the one posted here.
Mod version: BasicShields-1.3.1-1.18.2
Log snippet: https://mclo.gs/AM4EYPW