Skip to content

1.20.1 summon wands' minion capacity consumption didn't work properly #31

@CuBr202

Description

@CuBr202

Game version: 1.20.1
Terra entity version: 1.1.17.1

I made a custom summon wand consuming 10 minion capacity in a forked Terra entity.
The summon wands in original Terra Entity all consumes 1minion capacity, so the problem didn't show up.
However, when I wrote some custom summon wands that consumes more than 1 minion capacity, things goes wrong:

Experiment 1
1.Summon once, minion capacity consumption is 10
2.Summon again using this same wand, minion capacity consumption is 11(the right value is 20)
3.Summon again, minion capacity consumption is 12(the right value is 30)

Experiment 2
1.Empty the last summoned minions by long right clicking
2.Summon once, minion capacity consumption is 10
3.Summon once using a wand consuming 5 minion capacity, minion capacity consumption is 6(the right value is 15)

In a nutshell, only the newest summoned minion is correctly calculated into the minion capacity consumption; all the previous minions are counted as 1 regardless of how many capacity should they consume.

This bug could possibly affect the future multi-capacity summon wands.


我自己用fork的terra entity(1.20.1 1.1.17.1版),基于SummonSword类写了一个消耗10栏的召唤杖。
原版泰拉生物全是1栏召唤物,所以这个问题没有显现。
但我发现,如果召唤杖需要消耗大于1的仆从栏数量,那么计算当前整体消耗的仆从数量就会出现问题:

实验1
1.召唤1次,仆从栏消耗10
2.用这个召唤杖再召唤一次,仆从栏消耗为11(正常应该是20)
3.再召唤一次,仆从栏消耗12(正常应该是30)

实验2
1.右键长按清空上一次召唤的仆从
2.召唤1次,仆从栏消耗10
3.用消耗为5的召唤杖召唤1次,仆从消耗6(正常应该是15)

总之,似乎只有最新召唤出的这个召唤物消耗的仆从栏被正确计算了,之前召唤的所有仆从,无论消耗多少栏位,均被算成了1。
这个bug可能会影响未来的多栏召唤物。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions