Skip to content

Refactored a ton of blocks/items to use world.Tx instead of world.World. #3124

Refactored a ton of blocks/items to use world.Tx instead of world.World.

Refactored a ton of blocks/items to use world.Tx instead of world.World. #3124

Triggered via push October 16, 2024 19:03
Status Failure
Total duration 21s
Artifacts

push.yml

on: push
Update Contributors
0s
Update Contributors
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Build: server/entity/ender_pearl.go#L24
cannot use teleport (value of type func(e *Ent, target trace.Result)) as func(e *Ent, tx *world.Tx, target trace.Result) value in struct literal
Build: server/entity/area_effect_cloud.go#L49
impossible type assertion: e.(*Ent)
Build: server/entity/area_effect_cloud.go#L54
cannot use NewAreaEffectCloudWith(nbtconv.Vec3(m, "Pos"), potion.From(nbtconv.Int32(m, "PotionId")), nbtconv.TickDuration[int32](m, "Duration"), nbtconv.TickDuration[int32](m, "ReapplicationDelay"), nbtconv.TickDuration[int32](m, "DurationOnUse"), float64(nbtconv.Float32(m, "Radius")), float64(nbtconv.Float32(m, "RadiusOnUse")), float64(nbtconv.Float32(m, "RadiusPerTick"))) (value of type *Ent) as world.Entity value in return statement: *Ent does not implement world.Entity (missing method Handle)
Build: server/entity/area_effect_cloud.go#L67
impossible type assertion: e.(*Ent)
Build: server/entity/area_effect_cloud_behaviour.go#L88
w.Viewers undefined (type *world.World has no field or method Viewers)
Build: server/entity/area_effect_cloud_behaviour.go#L104
w.EntitiesWithin undefined (type *world.World has no field or method EntitiesWithin)
Build: server/entity/area_effect_cloud_behaviour.go#L104
cannot use e (variable of type *Ent) as world.Entity value in argument to e.Type().BBox: *Ent does not implement world.Entity (missing method Handle)
Build: server/entity/area_effect_cloud_behaviour.go#L107
invalid operation: entity == e (mismatched types world.Entity and *Ent)
Build: server/entity/area_effect_cloud_behaviour.go#L110
w.Viewers undefined (type *world.World has no field or method Viewers)
Build: server/entity/arrow.go#L82
cannot use arr (variable of type *Ent) as world.Entity value in return statement: *Ent does not implement world.Entity (missing method Handle)
Build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/