bombsquad-plugin-manager/plugins/utilities/allow_invisible_models.py

28 lines
707 B
Python
Raw Normal View History

# Porting to api 8 made easier by baport.(https://github.com/bombsquad-community/baport)
2025-01-15 03:15:53 +05:30
# ba_meta require api 9
2025-07-26 00:49:56 +00:00
import babase
2025-07-26 12:34:21 +05:30
import bascenev1 as bs
2023-01-22 15:34:19 +05:30
original_getmesh = bs.getmesh
2023-01-22 15:34:19 +05:30
2025-07-26 12:41:03 +05:30
plugman = dict(
2025-07-26 07:11:32 +00:00
plugin_name="allow_invisible_models",
description="Shake as many stiies of you as possible",
external_url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",
author=["Loup", "brostos"],
discord="mydiscord",
email="dontclickthelink@pleasedont.com",
version="1.0.0"
2025-07-26 12:41:03 +05:30
)
2025-07-26 07:11:32 +00:00
def get_mesh_gracefully(mesh):
if mesh is not None:
return original_getmesh(mesh)
2023-01-22 15:34:19 +05:30
# ba_meta export plugin
class Main(babase.Plugin):
2023-01-22 15:34:19 +05:30
def on_app_running(self):
bs.getmesh = get_mesh_gracefully