plugin-hub icon indicating copy to clipboard operation
plugin-hub copied to clipboard

Create: skull-prevention-reminder

Open lostcoastwizard opened this issue 1 year ago • 1 comments

Draws an overlay to display whether skull prevention is on or off.

I noticed pull request #5012 needed some clean up but was abandoned.

The changes asked for by @LlemonDuck have been applied along with some minor refactoring.

2024-06-06_10-30-47

2024-06-06_10-30-51

2024-06-06_10-31-24

2024-06-06_10-30-57

2024-06-06_10-31-01

2024-06-06_10-31-13

lostcoastwizard avatar Jun 06 '24 17:06 lostcoastwizard

New plugin skull-prevention-reminder: https://github.com/lostcoastwizard/skull-prevention-reminder/tree/b36aadb330b2ad8cfac95b117b226d962f17727e

original author needs included in the license

raiyni avatar Jul 06 '24 13:07 raiyni

LICENSE updated

lostcoastwizard avatar Jul 06 '24 15:07 lostcoastwizard

You should not be loading the resources every frame during render. Load them once and reuse the images between frames

https://github.com/lostcoastwizard/skull-prevention-reminder/blob/63643e1df317ee322ffbc844a5947b69327e6538/src/main/java/com/SkullPreventionReminder/SkullPreventionReminderOverlay.java#L31-L40

LlemonDuck avatar Jul 15 '24 00:07 LlemonDuck

Updated. Images are no longer loaded every frame.

lostcoastwizard avatar Jul 15 '24 03:07 lostcoastwizard