Skip to content

Instantly share code, notes, and snippets.

View HeathLoganCampbell's full-sized avatar
🐧

Heath L Campbell HeathLoganCampbell

🐧
View GitHub Profile
@MrBlobman
MrBlobman / Sounds.java
Last active June 24, 2021 21:07
A pre 1.9 to post 1.9 spigot sound enum mapping to use sound names across both versions.
// The following license should allow reuse, redistribution, with or without edits and with or without attribution.
// Do what you want with it!
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 MrBlobman
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@jfsurban
jfsurban / gist:3180662
Created July 26, 2012 07:02
Prevent ReflectionTypeLoadException when calling Assembly.GetTypes()
// http://stackoverflow.com/questions/7889228/how-to-prevent-reflectiontypeloadexception-when-calling-assembly-gettypes
Type[] types;
try
{
types = asm.GetTypes();
}
catch (ReflectionTypeLoadException e)
{
types = e.Types;