Conversation
dfb05eb to
33c7823
Compare
02b7e0a to
97214d3
Compare
02b7e0a to
e3342f8
Compare
aa270e9 to
4ae3f0d
Compare
4ae3f0d to
605095f
Compare
d285847 to
eb45cb3
Compare
eb45cb3 to
70e67bc
Compare
70e67bc to
ee039b8
Compare
ee039b8 to
c57abdb
Compare
|
I notice that you have a table in the original post, do you need help in dumping all the current causes ? Or how can I assist with testing? |
|
@ryantheleach yeah if you want to go through and dump current causes for bleeding that would be a great help |
| causeTracker.completePhase(EntityPhase.State.DEATH); | ||
| } | ||
|
|
||
| if (frame != null) { |
There was a problem hiding this comment.
Do these really pop up as often as I think they do? Frame.closeOnMainThread(frame)?
| if (entity != null) { | ||
| entity.onKillEntity((EntityLivingBase) (Object) this); | ||
| final boolean isMainThread = !this.world.isRemote || Sponge.isServerAvailable() && Sponge.getServer().isMainThread(); | ||
| final CauseStackFrame frame = isMainThread ? Sponge.getCauseStackManager().pushCauseFrame() : null; |
There was a problem hiding this comment.
Sponge.getCauseStackManager().pushFrameIfMain(); ?
9a17d01 to
1841883
Compare
| EntityUtil.toMixin(entity).setCreator(entityCreator.getUniqueId()); | ||
| try (CauseStackFrame frame = Sponge.getCauseStackManager().pushCauseFrame()) { | ||
| Sponge.getCauseStackManager().pushCause(locatableBlock); | ||
| Sponge.getCauseStackManager().addContext(EventContextKeys.SPAWN_TYPE, InternalSpawnTypes.DROPPED_ITEM); |
There was a problem hiding this comment.
This adds a dropped item context to a lot of ChangeBlockEvents.
.Break (always in creative when no items drop / fire)
.Modify (tested with fire)
|
Things to look into: ChangeBlockEvent
Setup and Cause printout
SetupCausePrintoutWith repeater:
Setup and Cause printout
CausePrintoutWith Repeater:
Teleport
Listener Code
Listener Code |
| i++; | ||
| } | ||
| final PrettyPrinter printer = new PrettyPrinter(100).add("Cause Stack Frame Corruption!").centre().hr() | ||
| .add("Found %n frames left on the stack. Clearing them all.", offset + 1); |
There was a problem hiding this comment.
Found %n frames left on the stack. Clearing them all. %n is never set
| builder.notifier(notifier); | ||
| try (CauseStackFrame frame = Sponge.getCauseStackManager().pushCauseFrame()) { | ||
| Sponge.getCauseStackManager().pushCause(source); | ||
| Sponge.getCauseStackManager().addContext(EventContextKeys.LIQUID_MIX, (World) worldIn); |
There was a problem hiding this comment.
add a LIQUID_BREAK or keep the previous LIQUID_FLOW? Nothing is mixing here
| @Override | ||
| public void associateBlockEventNotifier(PhaseContext context, IMixinWorldServer mixinWorldServer, BlockPos pos, IMixinBlockEventData blockEvent) { | ||
| final Player player = context.first(Player.class).get(); | ||
| final Player player = Sponge.getCauseStackManager().getCurrentCause().first(Player.class).get(); |
There was a problem hiding this comment.
Player is not present when opening inventories
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
…it is not recoverable
…iously were not being used. Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
7697ce5 to
62706c4
Compare
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
…closed. Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
…cleanup. Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>


SpongeApi | SpongeCommon | SpongeForge | SpongeVanilla
See api PR for description
Current causes
Cause[{Name=Source, Object={EntityPlayerMP['Deamon_t'/293, l='world', x=-185.83, y=72.00, z=339.17]}]Cause (size 1): [EntityPlayerMP['Deamon_t'/293, l='world', x=-185.83, y=72.00, z=339.17]] Context (0): []